From b0851737ed37f9dd68309e560bbfdad900c27e54 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Sun, 8 Oct 2023 16:00:58 +0100 Subject: [PATCH] Publish api.json (#2034) This PR publishes the api.json files created by the build-api scripts. ### Change Type - [x] `internal` --- .gitignore | 5 +- packages/editor/api/api.json | 48319 +++++++++++++++++++++++++++++++ packages/state/api/api.json | 3316 +++ packages/store/api/api.json | 5684 ++++ packages/tldraw/api/api.json | 18005 ++++++++++++ packages/tlschema/api/api.json | 9462 ++++++ packages/utils/api/api.json | 2445 ++ packages/validate/api/api.json | 4454 +++ 8 files changed, 91689 insertions(+), 1 deletion(-) create mode 100644 packages/editor/api/api.json create mode 100644 packages/state/api/api.json create mode 100644 packages/store/api/api.json create mode 100644 packages/tldraw/api/api.json create mode 100644 packages/tlschema/api/api.json create mode 100644 packages/utils/api/api.json create mode 100644 packages/validate/api/api.json diff --git a/.gitignore b/.gitignore index cec604b8f..476753db4 100644 --- a/.gitignore +++ b/.gitignore @@ -70,7 +70,10 @@ apps/examples/www/translations !.yarn/sdks !.yarn/versions -packages/*/api +packages/*/api/temp +packages/*/api/internal.d.ts +packages/*/api/public.d.ts + apps/examples/www/index.css apps/examples/www/index.js .tsbuild diff --git a/packages/editor/api/api.json b/packages/editor/api/api.json new file mode 100644 index 000000000..7983d7580 --- /dev/null +++ b/packages/editor/api/api.json @@ -0,0 +1,48319 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.35.4", + "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!angleDelta:function(1)", + "docComment": "/**\n * Get the short 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 angleDelta(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": "angleDelta" + }, + { + "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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n radius: number;\n start: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n end: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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#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": "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": "Class", + "canonicalReference": "@tldraw/editor!Box2d:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class Box2d " + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/Box2d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "Box2d", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/editor!Box2d:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Box2d` 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!Box2d#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!Box2d#center:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get center(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n\nset center(v: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Box2d#clone:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "clone(): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d#collides:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "collides(B: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d.Collides:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Collides: " + }, + { + "kind": "Content", + "text": "(A: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d.Common:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Common: " + }, + { + "kind": "Content", + "text": "(boxes: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": "[]) => " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d#contains:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "contains(B: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d.Contains:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Contains: " + }, + { + "kind": "Content", + "text": "(A: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d#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!Box2d.ContainsPoint:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static ContainsPoint: " + }, + { + "kind": "Content", + "text": "(A: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d#corners:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get corners(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Method", + "canonicalReference": "@tldraw/editor!Box2d#equals:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "equals(other: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel: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!Box2d.Equals:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Equals(a: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface" + }, + { + "kind": "Content", + "text": ", b: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel: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!Box2d#expand:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "expand(A: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d.Expand:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Expand(A: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d#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!Box2d.ExpandBy:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static ExpandBy(A: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ", n: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d.From:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static From(box: " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d.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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d#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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Box2d#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!Box2d#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!Box2d#includes:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "includes(B: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d.Includes:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Includes: " + }, + { + "kind": "Content", + "text": "(A: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d#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!Box2d#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!Box2d#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!Box2d#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!Box2d#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!Box2d#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!Box2d#point:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get point(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n\nset point(val: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Box2d#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!Box2d.Resize:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Resize(box: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d#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!Box2d#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!Box2d#setTo:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTo(B: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Box2d#sides:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get sides(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<[" + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Box2d.Sides:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Sides: " + }, + { + "kind": "Content", + "text": "(A: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ", inset?: number) => " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Box2d#size:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get size(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "size", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Box2d#snapPoints:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get snapPoints(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "snapPoints", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Box2d#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!Box2d#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!Box2d#toJson:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toJson(): " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel: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!Box2d#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!Box2d#union:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "union(box: " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel: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!Box2d#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!Box2d#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!Box2d#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!Box2d#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!Box2d#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!Box2d.ZeroFix:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static ZeroFix(other: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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": "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": "Function", + "canonicalReference": "@tldraw/editor!Canvas:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Canvas({ className }: " + }, + { + "kind": "Content", + "text": "{\n className?: string;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/.tsbuild-api/lib/components/Canvas.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ className }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Canvas" + }, + { + "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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n cp1: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n cp2: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n end: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultBackground.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "DefaultBackground" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultBrush:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultBrush: " + }, + { + "kind": "Reference", + "text": "TLBrushComponent", + "canonicalReference": "@tldraw/editor!TLBrushComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultBrush.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultBrush", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultCollaboratorHint:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultCollaboratorHint: " + }, + { + "kind": "Reference", + "text": "TLCollaboratorHintComponent", + "canonicalReference": "@tldraw/editor!TLCollaboratorHintComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultCollaboratorHint.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultCollaboratorHint", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "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": "<{\n className?: string | undefined;\n point: null | " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n zoom: number;\n color?: string | undefined;\n name: null | string;\n chatMessage: string;\n}>" + } + ], + "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": "Variable", + "canonicalReference": "@tldraw/editor!DefaultGrid:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultGrid: " + }, + { + "kind": "Reference", + "text": "TLGridComponent", + "canonicalReference": "@tldraw/editor!TLGridComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultGrid.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultGrid", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultHandle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultHandle: " + }, + { + "kind": "Reference", + "text": "TLHandleComponent", + "canonicalReference": "@tldraw/editor!TLHandleComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultHandle.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultHandle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultHandles:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultHandles: " + }, + { + "kind": "Reference", + "text": "TLHandlesComponent", + "canonicalReference": "@tldraw/editor!TLHandlesComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultHandles.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultHandles", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultHoveredShapeIndicator:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultHoveredShapeIndicator: " + }, + { + "kind": "Reference", + "text": "TLHoveredShapeIndicatorComponent", + "canonicalReference": "@tldraw/editor!TLHoveredShapeIndicatorComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultHoveredShapeIndicator.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultHoveredShapeIndicator", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultScribble:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultScribble: " + }, + { + "kind": "Reference", + "text": "TLScribbleComponent", + "canonicalReference": "@tldraw/editor!TLScribbleComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultScribble.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultScribble", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultSelectionBackground:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultSelectionBackground: " + }, + { + "kind": "Reference", + "text": "TLSelectionBackgroundComponent", + "canonicalReference": "@tldraw/editor!TLSelectionBackgroundComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSelectionBackground.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultSelectionBackground", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultSelectionForeground:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultSelectionForeground: " + }, + { + "kind": "Reference", + "text": "TLSelectionForegroundComponent", + "canonicalReference": "@tldraw/editor!TLSelectionForegroundComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSelectionForeground.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultSelectionForeground", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultSnapLine:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultSnapLine: " + }, + { + "kind": "Reference", + "text": "TLSnapLineComponent", + "canonicalReference": "@tldraw/editor!TLSnapLineComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSnapLine.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultSnapLine", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultSpinner:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultSpinner: " + }, + { + "kind": "Reference", + "text": "TLSpinnerComponent", + "canonicalReference": "@tldraw/editor!TLSpinnerComponent:type" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSpinner.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultSpinner", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!DefaultSvgDefs:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultSvgDefs: " + }, + { + "kind": "Content", + "text": "() => null" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSvgDefs.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultSvgDefs", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "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\" | \"da\" | \"de\" | \"en\" | \"es\" | \"fa\" | \"fi\" | \"fr\" | \"gl\" | \"he\" | \"hi-in\" | \"hu\" | \"it\" | \"ja\" | \"ko-kr\" | \"ku\" | \"my\" | \"ne\" | \"no\" | \"pl\" | \"pt-br\" | \"pt-pt\" | \"ro\" | \"ru\" | \"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 animationSpeed: 0 | 1;\n isSnapMode: 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": "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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n end: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n isSnappable?: boolean;\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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "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": "Method", + "canonicalReference": "@tldraw/editor!Edge2d#midPoint:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "midPoint(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "u", + "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.selectedShapeIds, '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 - (optional) 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 - (optional) 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": "Property", + "canonicalReference": "@tldraw/editor!Editor#assets:member", + "docComment": "/**\n * Get all assets in the editor.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get assets(): " + }, + { + "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": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "assets", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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.selectedShapeIds)\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": "Property", + "canonicalReference": "@tldraw/editor!Editor#camera:member", + "docComment": "/**\n * The current camera.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get camera(): " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/tlschema\")." + }, + { + "kind": "Reference", + "text": "TLCamera", + "canonicalReference": "@tldraw/tlschema!TLCamera:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "camera", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#cameraState:member", + "docComment": "/**\n * Whether the camera is moving or idle.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get cameraState(): " + }, + { + "kind": "Content", + "text": "\"idle\" | \"moving\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "cameraState", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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": "Property", + "canonicalReference": "@tldraw/editor!Editor#canRedo:member", + "docComment": "/**\n * Whether the app can redo.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get canRedo(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "canRedo", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#canUndo:member", + "docComment": "/**\n * Whether the app can undo.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get canUndo(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "canUndo", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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 - (optional) 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#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": "Property", + "canonicalReference": "@tldraw/editor!Editor#croppingShapeId:member", + "docComment": "/**\n * The current cropping shape's id.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get croppingShapeId(): " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "croppingShapeId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#currentPage:member", + "docComment": "/**\n * The current page.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentPage(): " + }, + { + "kind": "Reference", + "text": "TLPage", + "canonicalReference": "@tldraw/tlschema!TLPage:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentPage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#currentPageBounds:member", + "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": "get currentPageBounds(): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentPageBounds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#currentPageId:member", + "docComment": "/**\n * The current page id.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentPageId(): " + }, + { + "kind": "Reference", + "text": "TLPageId", + "canonicalReference": "@tldraw/tlschema!TLPageId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentPageId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#currentPageShapeIds:member", + "docComment": "/**\n * An array of all of the shapes on the current page.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentPageShapeIds(): " + }, + { + "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": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentPageShapeIds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#currentPageShapes:member", + "docComment": "/**\n * An array containing all of the shapes in the current page.\n *\n * @example\n * ```ts\n * editor.currentPageShapes\n * ```\n *\n * @readonly @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentPageShapes(): " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentPageShapes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#currentPageShapesSorted:member", + "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 * @example\n * ```ts\n * editor.currentPageShapesSorted\n * ```\n *\n * @readonly @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentPageShapesSorted(): " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentPageShapesSorted", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#currentPageState:member", + "docComment": "/**\n * The current page state.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentPageState(): " + }, + { + "kind": "Reference", + "text": "TLInstancePageState", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentPageState", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#currentTool:member", + "docComment": "/**\n * The current selected tool.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentTool(): " + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentTool", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#currentToolId:member", + "docComment": "/**\n * The id of the current selected tool.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentToolId(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentToolId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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.selectedShapeIds, '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": "Property", + "canonicalReference": "@tldraw/editor!Editor#documentSettings:member", + "docComment": "/**\n * The global document settings that apply to all users.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get documentSettings(): " + }, + { + "kind": "Reference", + "text": "TLDocument", + "canonicalReference": "@tldraw/tlschema!TLDocument:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "documentSettings", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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 - (optional) 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.selectedShapes, { 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#editingShape:member", + "docComment": "/**\n * The current editing shape.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get editingShape(): " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "editingShape", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#editingShapeId:member", + "docComment": "/**\n * The current editing shape's id.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get editingShapeId(): " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "editingShapeId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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": "Property", + "canonicalReference": "@tldraw/editor!Editor#erasingShapeIds:member", + "docComment": "/**\n * The editor's current erasing ids.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get erasingShapeIds(): " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "erasingShapeIds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#erasingShapes:member", + "docComment": "/**\n * The editor's current hinting shapes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get erasingShapes(): " + }, + { + "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": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "erasingShapes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "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.selectedShapeIds, '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": "Property", + "canonicalReference": "@tldraw/editor!Editor#focusedGroup:member", + "docComment": "/**\n * The current focused group.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get focusedGroup(): " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "focusedGroup", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#focusedGroupId:member", + "docComment": "/**\n * The current focused group id.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get focusedGroupId(): " + }, + { + "kind": "Reference", + "text": "TLPageId", + "canonicalReference": "@tldraw/tlschema!TLPageId:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "focusedGroupId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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": "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#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": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape: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#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": "Content", + "text": "string" + }, + { + "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#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#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#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.getCurrentPageShapeIds('page1')\n * const idsOnPage2 = editor.getCurrentPageShapeIds(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#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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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#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#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 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": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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#getShapeOutlineSegments:member(1)", + "docComment": "/**\n * Get the local outline segments of a shape.\n *\n * @param shape - The shape (or shape id) to get the outline segments for.\n *\n * @example\n * ```ts\n * editor.getShapeOutlineSegments(myShape)\n * editor.getShapeOutlineSegments(myShapeId)\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getShapeOutlineSegments(shape: " + }, + { + "kind": "Content", + "text": "T | T['id']" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "[][]" + }, + { + "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": "getShapeOutlineSegments" + }, + { + "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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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#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": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getStateDescendant" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Editor#getSvg:member(1)", + "docComment": "/**\n * Get an exported SVG 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": "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": "<{\n scale: number;\n background: boolean;\n padding: number;\n darkMode?: boolean | undefined;\n preserveAspectRatio: " + }, + { + "kind": "Reference", + "text": "React.SVGAttributes", + "canonicalReference": "@types/react!React.SVGAttributes:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "SVGSVGElement", + "canonicalReference": "!SVGSVGElement:interface" + }, + { + "kind": "Content", + "text": ">['preserveAspectRatio'];\n }>" + }, + { + "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": 13, + "endIndex": 17 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shapes", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "opts", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 12 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getSvg" + }, + { + "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 - (optional) 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#hintingShapeIds:member", + "docComment": "/**\n * The editor's current hinting shape ids.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get hintingShapeIds(): " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "hintingShapeIds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#hintingShapes:member", + "docComment": "/**\n * The editor's current hinting shapes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get hintingShapes(): " + }, + { + "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": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "hintingShapes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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#hoveredShape:member", + "docComment": "/**\n * The current hovered shape.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get hoveredShape(): " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "hoveredShape", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#hoveredShapeId:member", + "docComment": "/**\n * The current hovered shape id.\n *\n * @readonly @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get hoveredShapeId(): " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "hoveredShapeId", + "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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n originScreenPoint: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n previousPagePoint: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n previousScreenPoint: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n currentPagePoint: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n currentScreenPoint: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Property", + "canonicalReference": "@tldraw/editor!Editor#instanceState:member", + "docComment": "/**\n * The current instance's state.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get instanceState(): " + }, + { + "kind": "Reference", + "text": "TLInstance", + "canonicalReference": "@tldraw/tlschema!TLInstance:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "instanceState", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "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": "Property", + "canonicalReference": "@tldraw/editor!Editor#isMenuOpen:member", + "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": "get isMenuOpen(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "isMenuOpen", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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#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 - (optional) Whether to stop at the mark when undoing.\n *\n * @param onRedo - (optional) 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 - (optional) The history options for the change.\n *\n * @example\n * ```ts\n * editor.nudgeShapes(['box1', 'box2'], { x: 8, y: 8 })\n * editor.nudgeShapes(editor.selectedShapes, { 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": "Property", + "canonicalReference": "@tldraw/editor!Editor#onlySelectedShape:member", + "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 * @example\n * ```ts\n * editor.onlySelectedShape\n * ```\n *\n * @public @readonly\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get onlySelectedShape(): " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "onlySelectedShape", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#openMenus:member", + "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": "get openMenus(): " + }, + { + "kind": "Content", + "text": "string[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "openMenus", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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.selectedShapeIds, 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": "Property", + "canonicalReference": "@tldraw/editor!Editor#pages:member", + "docComment": "/**\n * Info about the project's current pages.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get pages(): " + }, + { + "kind": "Reference", + "text": "TLPage", + "canonicalReference": "@tldraw/tlschema!TLPage:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "pages", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#pageStates:member", + "docComment": "/**\n * Page states.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get pageStates(): " + }, + { + "kind": "Reference", + "text": "TLInstancePageState", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "pageStates", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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 screen 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#pan:member(1)", + "docComment": "/**\n * Pan the camera.\n *\n * @param offset - The offset in the current page space.\n *\n * @param animation - (optional) 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#renderingBounds:member", + "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": "get renderingBounds(): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "renderingBounds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#renderingBoundsExpanded:member", + "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": "get renderingBoundsExpanded(): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "renderingBoundsExpanded", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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": "Property", + "canonicalReference": "@tldraw/editor!Editor#renderingShapes:member", + "docComment": "/**\n * Get the shapes that should be displayed in the current viewport.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get renderingShapes(): " + }, + { + "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 isCulled: boolean;\n maskedPageBounds: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": " | undefined;\n }[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "renderingShapes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + }, + "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 - (optional) 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": "Content", + "text": "string" + }, + { + "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 - (optional) The screen point to zoom out on. Defaults to the viewport screen center.\n *\n * @param animation - (optional) The options for an animation.\n *\n * @example\n * ```ts\n * editor.resetZoom()\n * editor.resetZoom(editor.viewportScreenCenter)\n * editor.resetZoom(editor.viewportScreenCenter, { duration: 200 })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "resetZoom(point?: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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.selectedShapeIds, Math.PI)\n * editor.rotateShapesBy(editor.selectedShapeIds, 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": "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": "Property", + "canonicalReference": "@tldraw/editor!Editor#selectedShapeIds:member", + "docComment": "/**\n * The current selected ids.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get selectedShapeIds(): " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "selectedShapeIds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#selectedShapes:member", + "docComment": "/**\n * An array containing all of the currently selected shapes.\n *\n * @example\n * ```ts\n * editor.selectedShapes\n * ```\n *\n * @public @readonly\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get selectedShapes(): " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "selectedShapes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#selectionPageBounds:member", + "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": "get selectionPageBounds(): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "selectionPageBounds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#selectionRotatedPageBounds:member", + "docComment": "/**\n * The bounds of the selection bounding box in the current page space.\n *\n * @readonly @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get selectionRotatedPageBounds(): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "selectionRotatedPageBounds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#selectionRotation:member", + "docComment": "/**\n * The rotation of the selection bounding box in the current page space.\n *\n * @readonly @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get selectionRotation(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "selectionRotation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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 - (optional) 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 - (optional) 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 selected shapes.\n *\n * @param style - The style to set.\n *\n * @param value - The value to set.\n *\n * @param historyOptions - (optional) 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": "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 - (optional) 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(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": "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#sharedOpacity:member", + "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": "get sharedOpacity(): " + }, + { + "kind": "Reference", + "text": "SharedStyle", + "canonicalReference": "@tldraw/editor!SharedStyle:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "sharedOpacity", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#sharedStyles:member", + "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.sharedStyles.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": "get sharedStyles(): " + }, + { + "kind": "Reference", + "text": "ReadonlySharedStyleMap", + "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "sharedStyles", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "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.\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.selectedShapeIds, '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.selectedShapeIds, '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 - (optional) The history options for the change.\n *\n * @example\n * ```ts\n * editor.updateInstancePageState({ id: 'page1', editingShapeId: 'shape:123' })\n * editor.updateInstancePageState({ 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 - (optional) 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 - (optional) 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 - (optional) 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 - (optional) 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 - (optional) 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(center?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "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": "center", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "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": "Property", + "canonicalReference": "@tldraw/editor!Editor#viewportPageBounds:member", + "docComment": "/**\n * The current viewport in the current page space.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get viewportPageBounds(): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "viewportPageBounds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#viewportPageCenter:member", + "docComment": "/**\n * The center of the viewport in the current page space.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get viewportPageCenter(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "viewportPageCenter", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#viewportScreenBounds:member", + "docComment": "/**\n * The bounds of the editor's viewport in screen space.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get viewportScreenBounds(): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "viewportScreenBounds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Editor#viewportScreenCenter:member", + "docComment": "/**\n * The center of the editor's viewport in screen space.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get viewportScreenCenter(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "viewportScreenCenter", + "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 - (optional) The options for an animation.\n *\n * @example\n * ```ts\n * editor.zoomIn()\n * editor.zoomIn(editor.viewportScreenCenter, { 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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Property", + "canonicalReference": "@tldraw/editor!Editor#zoomLevel:member", + "docComment": "/**\n * The current camera zoom level.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get zoomLevel(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "zoomLevel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Editor#zoomOut:member(1)", + "docComment": "/**\n * Zoom the camera out.\n *\n * @param animation - (optional) The options for an animation.\n *\n * @example\n * ```ts\n * editor.zoomOut()\n * editor.zoomOut(editor.viewportScreenCenter, { 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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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 targetZoom - The desired zoom level. Defaults to 0.1.\n *\n * @param animation - (optional) The options for an animation.\n *\n * @example\n * ```ts\n * editor.zoomToBounds(myBounds)\n * editor.zoomToBounds(myBounds, 1)\n * editor.zoomToBounds(myBounds, 1, { duration: 100 })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "zoomToBounds(bounds: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ", targetZoom?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "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": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "bounds", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "targetZoom", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "animation", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "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 - (optional) 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(): " + }, + { + "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": "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 - (optional) 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 - (optional) 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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Variable", + "canonicalReference": "@tldraw/editor!EPSILON:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "EPSILON: " + }, + { + "kind": "Content", + "text": "number" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "EPSILON", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "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 | " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": " | null | number | " + }, + { + "kind": "Reference", + "text": "React.ReactFragment", + "canonicalReference": "@types/react!React.ReactFragment:type" + }, + { + "kind": "Content", + "text": " | string | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "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: any;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/TldrawEditor.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ children }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "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!GapsSnapLine:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type GapsSnapLine = " + }, + { + "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.ts", + "releaseTag": "Public", + "name": "GapsSnapLine", + "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": "Property", + "canonicalReference": "@tldraw/editor!Geometry2d#_area:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_area: " + }, + { + "kind": "Content", + "text": "number | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "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": "_bounds: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "_bounds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Geometry2d#_snapPoints:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_snapPoints: " + }, + { + "kind": "Content", + "text": "undefined | " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "_snapPoints", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Geometry2d#_vertices:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_vertices: " + }, + { + "kind": "Content", + "text": "undefined | " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "_vertices", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "center", + "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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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#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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Property", + "canonicalReference": "@tldraw/editor!Geometry2d#isSnappable:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isSnappable: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isSnappable", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Geometry2d#nearestPoint:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "abstract nearestPoint(point: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Property", + "canonicalReference": "@tldraw/editor!Geometry2d#snapPoints:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get snapPoints(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "snapPoints", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!getArcLength:function(1)", + "docComment": "/**\n * Get the length of an arc between two points on a circle's perimeter.\n *\n * @param C - The circle's center as [x, y].\n *\n * @param r - The circle's radius.\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 getArcLength(C: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", r: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", 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": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "C", + "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 + }, + { + "parameterName": "B", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": false + } + ], + "name": "getArcLength" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!getArrowheadPathForType:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getArrowheadPathForType(info: " + }, + { + "kind": "Reference", + "text": "TLArrowInfo", + "canonicalReference": "@tldraw/editor!~TLArrowInfo:type" + }, + { + "kind": "Content", + "text": ", side: " + }, + { + "kind": "Content", + "text": "'end' | 'start'" + }, + { + "kind": "Content", + "text": ", strokeWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/shared/arrow/arrowheads.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "info", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "side", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "strokeWidth", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "getArrowheadPathForType" + }, + { + "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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n end: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!getCurvedArrowHandlePath:function(1)", + "docComment": "/**\n * Get a solid path for a curved arrow's handles.\n *\n * @param info - The arrow info.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getCurvedArrowHandlePath(info: " + }, + { + "kind": "Reference", + "text": "TLArrowInfo", + "canonicalReference": "@tldraw/editor!~TLArrowInfo:type" + }, + { + "kind": "Content", + "text": " & {\n isStraight: false;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/shared/arrow/curved-arrow.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "info", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "name": "getCurvedArrowHandlePath" + }, + { + "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!getIndexAbove:function(1)", + "docComment": "/**\n * Get the index above a given index.\n *\n * @param below - The index below.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getIndexAbove(below: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/reordering/reordering.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "below", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "getIndexAbove" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!getIndexBelow:function(1)", + "docComment": "/**\n * Get the index below a given index.\n *\n * @param above - The index above.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getIndexBelow(above: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/reordering/reordering.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "above", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "getIndexBelow" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!getIndexBetween:function(1)", + "docComment": "/**\n * Get the index between two indices.\n *\n * @param below - The index below.\n *\n * @param above - The index above.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getIndexBetween(below: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", above?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/reordering/reordering.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "below", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "above", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "name": "getIndexBetween" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!getIndices:function(1)", + "docComment": "/**\n * Get n number of indices, starting at an index.\n *\n * @param n - The number of indices to get.\n *\n * @param start - (optional) The index to start at.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getIndices(n: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", start?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/reordering/reordering.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "n", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "start", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "name": "getIndices" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!getIndicesAbove:function(1)", + "docComment": "/**\n * Get a number of indices above an index.\n *\n * @param below - The index below.\n *\n * @param n - The number of indices to get.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getIndicesAbove(below: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", n: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/reordering/reordering.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "below", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "n", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "getIndicesAbove" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!getIndicesBelow:function(1)", + "docComment": "/**\n * Get a number of indices below an index.\n *\n * @param above - The index above.\n *\n * @param n - The number of indices to get.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getIndicesBelow(above: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", n: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/reordering/reordering.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "above", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "n", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "getIndicesBelow" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!getIndicesBetween:function(1)", + "docComment": "/**\n * Get a number of indices between two indices.\n *\n * @param below - (optional) The index below.\n *\n * @param above - (optional) The index above.\n *\n * @param n - The number of indices to get.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getIndicesBetween(below: " + }, + { + "kind": "Content", + "text": "string | undefined" + }, + { + "kind": "Content", + "text": ", above: " + }, + { + "kind": "Content", + "text": "string | undefined" + }, + { + "kind": "Content", + "text": ", n: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/reordering/reordering.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "below", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "above", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "n", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "getIndicesBetween" + }, + { + "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!getPointOnCircle:function(1)", + "docComment": "/**\n * Get a point on the perimeter of a circle.\n *\n * @param cx - The center x of the circle.\n *\n * @param cy - The center y of the circle.\n *\n * @param r - The radius of the circle.\n *\n * @param a - The normalized point on the circle.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getPointOnCircle(cx: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", cy: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", r: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", a: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cx", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "cy", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "r", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "a", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!getSolidCurvedArrowPath:function(1)", + "docComment": "/**\n * Get a solid path for a curved arrow's body.\n *\n * @param info - The arrow info.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getSolidCurvedArrowPath(info: " + }, + { + "kind": "Reference", + "text": "TLArrowInfo", + "canonicalReference": "@tldraw/editor!~TLArrowInfo:type" + }, + { + "kind": "Content", + "text": " & {\n isStraight: false;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/shared/arrow/curved-arrow.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "info", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "name": "getSolidCurvedArrowPath" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!getSolidStraightArrowPath:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getSolidStraightArrowPath(info: " + }, + { + "kind": "Reference", + "text": "TLArrowInfo", + "canonicalReference": "@tldraw/editor!~TLArrowInfo:type" + }, + { + "kind": "Content", + "text": " & {\n isStraight: true;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/shared/arrow/straight-arrow.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "info", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "name": "getSolidStraightArrowPath" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!getStarBounds:var", + "docComment": "/**\n * Gets the width/height of a star given its input bounds.\n *\n * @param sides - Number of sides\n *\n * @param w - T target width\n *\n * @param h - Target height\n *\n * @returns Box2d\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getStarBounds: " + }, + { + "kind": "Content", + "text": "(sides: number, w: number, h: number) => " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "getStarBounds", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!getStraightArrowHandlePath:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getStraightArrowHandlePath(info: " + }, + { + "kind": "Reference", + "text": "TLArrowInfo", + "canonicalReference": "@tldraw/editor!~TLArrowInfo:type" + }, + { + "kind": "Content", + "text": " & {\n isStraight: true;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/shared/arrow/straight-arrow.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "info", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "name": "getStraightArrowHandlePath" + }, + { + "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!getSweep:function(1)", + "docComment": "/**\n * Get the \"sweep\" or short distance between two points on a circle's perimeter.\n *\n * @param C - The center of the circle.\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 getSweep(C: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", 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": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "C", + "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 + } + ], + "name": "getSweep" + }, + { + "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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Method", + "canonicalReference": "@tldraw/editor!Group2d#nearestPoint:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "nearestPoint(point: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/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": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!GroupShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/store\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/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": "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": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/HTMLContainer.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "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!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!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!isAngleBetween:function(1)", + "docComment": "/**\n * Is angle c between angles a and b?\n *\n * @param a - The first angle.\n *\n * @param b - The second angle.\n *\n * @param c - The third angle.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isAngleBetween(a: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", b: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", c: " + }, + { + "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": "c", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "isAngleBetween" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!isSafeFloat:var", + "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: " + }, + { + "kind": "Content", + "text": "(n: number) => boolean" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "isSafeFloat", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!lerpAngles:function(1)", + "docComment": "/**\n * Interpolate an angle between two angles.\n *\n * @param a0 - The first angle.\n *\n * @param a1 - The second angle.\n *\n * @param t - The interpolation value.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function lerpAngles(a0: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", a1: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", t: " + }, + { + "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": "a0", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "a1", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "t", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "lerpAngles" + }, + { + "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: any;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/TldrawEditor.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ children }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "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!longAngleDist:function(1)", + "docComment": "/**\n * Get the long 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 longAngleDist(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": "longAngleDist" + }, + { + "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!Matrix2d:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class Matrix2d " + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/Matrix2d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "Matrix2d", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/editor!Matrix2d:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Matrix2d` 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!Matrix2d#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!Matrix2d.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": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel: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!Matrix2d.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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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!Matrix2d#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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Matrix2d.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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Matrix2d#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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Matrix2d.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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Matrix2d.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!Matrix2d#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!Matrix2d#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!Matrix2d.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": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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!Matrix2d#clone:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "clone(): " + }, + { + "kind": "Reference", + "text": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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!Matrix2d.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": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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!Matrix2d#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!Matrix2d#decompose:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "decompose(): " + }, + { + "kind": "Reference", + "text": "MatrixInfo", + "canonicalReference": "@tldraw/editor!~MatrixInfo:interface" + }, + { + "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!Matrix2d.Decompose:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Decompose(m: " + }, + { + "kind": "Reference", + "text": "MatLike", + "canonicalReference": "@tldraw/editor!~MatLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MatrixInfo", + "canonicalReference": "@tldraw/editor!~MatrixInfo: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": "Decompose" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Matrix2d#decomposed:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "decomposed(): " + }, + { + "kind": "Reference", + "text": "MatrixInfo", + "canonicalReference": "@tldraw/editor!~MatrixInfo:interface" + }, + { + "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!Matrix2d#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!Matrix2d#equals:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "equals(m: " + }, + { + "kind": "Reference", + "text": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel: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!Matrix2d#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!Matrix2d.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": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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!Matrix2d#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!Matrix2d.Identity:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Identity(): " + }, + { + "kind": "Reference", + "text": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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!Matrix2d.Inverse:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Inverse(m: " + }, + { + "kind": "Reference", + "text": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel: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!Matrix2d#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!Matrix2d#multiply:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "multiply(m: " + }, + { + "kind": "Reference", + "text": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel: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!Matrix2d.Multiply:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Multiply(m1: " + }, + { + "kind": "Reference", + "text": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel:interface" + }, + { + "kind": "Content", + "text": ", m2: " + }, + { + "kind": "Reference", + "text": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel: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!Matrix2d#point:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "point(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Matrix2d.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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Matrix2d#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": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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!Matrix2d.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": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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!Matrix2d#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!Matrix2d.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!Matrix2d#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!Matrix2d.Scale:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Scale: " + }, + { + "kind": "Content", + "text": "{\n (x: number, y: number): " + }, + { + "kind": "Reference", + "text": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n (x: number, y: number, cx: number, cy: number): " + }, + { + "kind": "Reference", + "text": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel: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!Matrix2d#setTo:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTo(model: " + }, + { + "kind": "Reference", + "text": "Matrix2dModel", + "canonicalReference": "@tldraw/editor!Matrix2dModel: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!Matrix2d.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!Matrix2d#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!Matrix2d.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!Matrix2d#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": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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!Matrix2d.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": "Matrix2d", + "canonicalReference": "@tldraw/editor!Matrix2d: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": "Interface", + "canonicalReference": "@tldraw/editor!Matrix2dModel:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface Matrix2dModel " + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/Matrix2d.ts", + "releaseTag": "Public", + "name": "Matrix2dModel", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!Matrix2dModel#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!Matrix2dModel#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!Matrix2dModel#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!Matrix2dModel#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!Matrix2dModel#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!Matrix2dModel#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!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": "Function", + "canonicalReference": "@tldraw/editor!pointInBounds:function(1)", + "docComment": "/**\n * Get whether a point is inside of a bounds.\n *\n * @param A - The point to check.\n *\n * @param b - The bounds to check.\n *\n * @returns Boolean\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function pointInBounds(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", b: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "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": "pointInBounds" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!pointInCircle:function(1)", + "docComment": "/**\n * Get whether a point is inside of a circle.\n *\n * @param A - The point to check.\n *\n * @param C - The circle's center point as [x, y].\n *\n * @param r - The circle's radius.\n *\n * @returns Boolean\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function pointInCircle(A: " + }, + { + "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": "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": "C", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "r", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "pointInCircle" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!pointInEllipse:function(1)", + "docComment": "/**\n * Get whether a point is inside of an ellipse.\n *\n * @param point - The point to check.\n *\n * @param center - The ellipse's center point as [x, y].\n *\n * @param rx - The ellipse's x radius.\n *\n * @param ry - The ellipse's y radius.\n *\n * @param rotation - The ellipse's rotation.\n *\n * @returns Boolean\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function pointInEllipse(A: " + }, + { + "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": ", rx: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", ry: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", rotation?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "returnTypeTokenRange": { + "startIndex": 11, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "C", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "rx", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "ry", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": false + }, + { + "parameterName": "rotation", + "parameterTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "isOptional": true + } + ], + "name": "pointInEllipse" + }, + { + "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": "Function", + "canonicalReference": "@tldraw/editor!pointInPolyline:function(1)", + "docComment": "/**\n * Hit test a point and a polyline using a minimum distance.\n *\n * @param A - The point to check.\n *\n * @param points - The points that make up the polyline.\n *\n * @param distance - The mininum distance that qualifies a hit.\n *\n * @returns Boolean\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function pointInPolyline(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": ", distance?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "points", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "distance", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "isOptional": true + } + ], + "name": "pointInPolyline" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!pointInRect:function(1)", + "docComment": "/**\n * Get whether a point is inside of a rectangle.\n *\n * @param A - The point to check.\n *\n * @param point - The rectangle's top left point as [x, y].\n *\n * @param size - The rectangle's size as [width, height].\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function pointInRect(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", point: " + }, + { + "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": "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": "point", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "size", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "pointInRect" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!pointNearToLineSegment:function(1)", + "docComment": "/**\n * Get whether a point is within a certain distance from a line segment.\n *\n * @param A - The point to check.\n *\n * @param p1 - The polyline's first point.\n *\n * @param p2 - The polyline's second point.\n *\n * @param distance - The mininum distance that qualifies a hit.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function pointNearToLineSegment(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", p1: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", p2: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", distance?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "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": "p1", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "p2", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "distance", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": true + } + ], + "name": "pointNearToLineSegment" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!pointNearToPolyline:function(1)", + "docComment": "/**\n * Get whether a point is within a certain distance from a polyline.\n *\n * @param A - The point to check.\n *\n * @param points - The points that make up the polyline.\n *\n * @param distance - The mininum distance that qualifies a hit.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function pointNearToPolyline(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": ", distance?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "points", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "distance", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "isOptional": true + } + ], + "name": "pointNearToPolyline" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!PointsSnapLine:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type PointsSnapLine = " + }, + { + "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.ts", + "releaseTag": "Public", + "name": "PointsSnapLine", + "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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Variable", + "canonicalReference": "@tldraw/editor!PositionedOnCanvas:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "PositionedOnCanvas: " + }, + { + "kind": "Content", + "text": "import(\"react\")." + }, + { + "kind": "Reference", + "text": "MemoExoticComponent", + "canonicalReference": "@types/react!React.MemoExoticComponent:type" + }, + { + "kind": "Content", + "text": "<({ " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@tldraw/editor!~__type#x" + }, + { + "kind": "Content", + "text": ": offsetX, " + }, + { + "kind": "Reference", + "text": "y", + "canonicalReference": "@tldraw/editor!~__type#y" + }, + { + "kind": "Content", + "text": ": offsetY, rotation, ...rest }: {\n x?: number | undefined;\n y?: number | undefined;\n rotation?: number | undefined;\n} & " + }, + { + "kind": "Reference", + "text": "HTMLProps", + "canonicalReference": "@types/react!React.HTMLProps:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "HTMLDivElement", + "canonicalReference": "!HTMLDivElement:interface" + }, + { + "kind": "Content", + "text": ">) => " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/PositionedOnCanvas.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "PositionedOnCanvas", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 14 + } + }, + { + "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.sharedStyles}.\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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel: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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d: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/Box2d.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/Box2d.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/Box2d.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/Box2d.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/Box2d.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/Box2d.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": "Variable", + "canonicalReference": "@tldraw/editor!ShapeIndicator:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ShapeIndicator: " + }, + { + "kind": "Reference", + "text": "React.NamedExoticComponent", + "canonicalReference": "@types/react!React.NamedExoticComponent:interface" + }, + { + "kind": "Content", + "text": "<{\n id: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n color?: string | undefined;\n opacity?: number | undefined;\n className?: string | undefined;\n}>" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/ShapeIndicator.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "ShapeIndicator", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "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": "Property", + "canonicalReference": "@tldraw/editor!ShapeUtil#canUnmount:member", + "docComment": "/**\n * Whether the shape should unmount when not visible in the editor. Consider keeping this to false if the shape's `component` has local state.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "canUnmount: " + }, + { + "kind": "Reference", + "text": "TLShapeUtilFlag", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canUnmount", + "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#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#getOutlineSegments:member(1)", + "docComment": "/**\n * Get an array of outline segments for the shape. For most shapes, this will be a single segment that includes the entire outline. For shapes with handles, this might be segments of the outline between each handle.\n *\n * @param shape - The shape.\n *\n * @example\n * ```ts\n * util.getOutlineSegments(myShape)\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getOutlineSegments(shape: " + }, + { + "kind": "Content", + "text": "Shape" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "[][]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getOutlineSegments" + }, + { + "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 resize 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": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "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#onHandleChange:member", + "docComment": "/**\n * A callback called when a shape's handle changes.\n *\n * @param shape - The 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": "onHandleChange?: " + }, + { + "kind": "Reference", + "text": "TLOnHandleChangeHandler", + "canonicalReference": "@tldraw/editor!TLOnHandleChangeHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onHandleChange", + "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": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onRotateEnd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!ShapeUtil#onRotateStart:member", + "docComment": "/**\n * A callback called when a shape starts being rotated.\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": "onRotateStart?: " + }, + { + "kind": "Reference", + "text": "TLOnRotateStartHandler", + "canonicalReference": "@tldraw/editor!TLOnRotateStartHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onRotateStart", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!ShapeUtil#onTranslate:member", + "docComment": "/**\n * A callback called when a shape changes from a translation.\n *\n * @param initial - The shape at the start of the translation.\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": "onTranslate?: " + }, + { + "kind": "Reference", + "text": "TLOnTranslateHandler", + "canonicalReference": "@tldraw/editor!TLOnTranslateHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onTranslate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!ShapeUtil#onTranslateEnd:member", + "docComment": "/**\n * A callback called when a shape finishes translating.\n *\n * @param initial - The shape at the start of the translation.\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": "onTranslateEnd?: " + }, + { + "kind": "Reference", + "text": "TLOnTranslateEndHandler", + "canonicalReference": "@tldraw/editor!TLOnTranslateEndHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onTranslateEnd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!ShapeUtil#onTranslateStart:member", + "docComment": "/**\n * A callback called when a shape starts being translated.\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": "onTranslateStart?: " + }, + { + "kind": "Reference", + "text": "TLOnTranslateStartHandler", + "canonicalReference": "@tldraw/editor!TLOnTranslateStartHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onTranslateStart", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!ShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props?: " + }, + { + "kind": "Reference", + "text": "ShapeProps", + "canonicalReference": "@tldraw/tlschema!ShapeProps:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUnknownShape", + "canonicalReference": "@tldraw/tlschema!TLUnknownShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!ShapeUtil#toBackgroundSvg:member(1)", + "docComment": "/**\n * Get the shape's background layer as an SVG object.\n *\n * @param shape - The shape.\n *\n * @param ctx - ctx - The export context for the SVG - used for adding e.g. \\s\n *\n * @returns An SVG element.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toBackgroundSvg?(shape: " + }, + { + "kind": "Content", + "text": "Shape" + }, + { + "kind": "Content", + "text": ", ctx: " + }, + { + "kind": "Reference", + "text": "SvgExportContext", + "canonicalReference": "@tldraw/editor!SvgExportContext:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": "> | " + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 11 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "ctx", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": true, + "isAbstract": false, + "name": "toBackgroundSvg" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!ShapeUtil#toSvg:member(1)", + "docComment": "/**\n * Get the shape as an SVG object.\n *\n * @param shape - The shape.\n *\n * @param ctx - The export context for the SVG - used for adding e.g. \\s\n *\n * @returns An SVG element.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg?(shape: " + }, + { + "kind": "Content", + "text": "Shape" + }, + { + "kind": "Content", + "text": ", ctx: " + }, + { + "kind": "Reference", + "text": "SvgExportContext", + "canonicalReference": "@tldraw/editor!SvgExportContext:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": "> | " + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 10 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "ctx", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": true, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!ShapeUtil.type:member", + "docComment": "/**\n * The type of the shape util, which should match the shape's type.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!SharedStyle:type", + "docComment": "/**\n * The value of a particular {@link @tldraw/tlschema#StyleProp}.\n *\n * A `mixed` style means that in the current selection, there are lots of different values for the same style prop - e.g. a red and a blue shape are selected.\n *\n * A `shared` style means that all shapes in the selection share the same value for this style prop.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type SharedStyle = " + }, + { + "kind": "Content", + "text": "{\n readonly type: 'mixed';\n} | {\n readonly type: 'shared';\n readonly value: T;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/SharedStylesMap.ts", + "releaseTag": "Public", + "name": "SharedStyle", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!shortAngleDist:function(1)", + "docComment": "/**\n * Get the short 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 shortAngleDist(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": "shortAngleDist" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!SIN:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "SIN: " + }, + { + "kind": "Content", + "text": "(x: number) => number" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "SIN", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!snapAngle:function(1)", + "docComment": "/**\n * Clamp rotation to even segments.\n *\n * @param r - The rotation in radians.\n *\n * @param segments - The number of segments.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function snapAngle(r: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", segments: " + }, + { + "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": "r", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "segments", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "snapAngle" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!SnapLine:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type SnapLine = " + }, + { + "kind": "Reference", + "text": "GapsSnapLine", + "canonicalReference": "@tldraw/editor!GapsSnapLine:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "PointsSnapLine", + "canonicalReference": "@tldraw/editor!PointsSnapLine:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/managers/SnapManager.ts", + "releaseTag": "Public", + "name": "SnapLine", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/editor!SnapManager:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class SnapManager " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/managers/SnapManager.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "SnapManager", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/editor!SnapManager:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `SnapManager` 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": "Method", + "canonicalReference": "@tldraw/editor!SnapManager#clear:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "clear(): " + }, + { + "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": "clear" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!SnapManager#currentCommonAncestor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentCommonAncestor(): " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentCommonAncestor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!SnapManager#editor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly editor: " + }, + { + "kind": "Reference", + "text": "Editor", + "canonicalReference": "@tldraw/editor!Editor:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "editor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!SnapManager#getSnappingHandleDelta:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getSnappingHandleDelta({ handlePoint, additionalSegments, }: " + }, + { + "kind": "Content", + "text": "{\n handlePoint: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n additionalSegments: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "[][];\n }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ handlePoint, additionalSegments, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getSnappingHandleDelta" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!SnapManager#lines:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get lines(): " + }, + { + "kind": "Reference", + "text": "SnapLine", + "canonicalReference": "@tldraw/editor!SnapLine:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "lines", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!SnapManager#outlinesInPageSpace:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get outlinesInPageSpace(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "[][]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "outlinesInPageSpace", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!SnapManager#setLines:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "setLines(lines: " + }, + { + "kind": "Reference", + "text": "SnapLine", + "canonicalReference": "@tldraw/editor!SnapLine:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "lines", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "setLines" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!SnapManager#snappablePoints:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get snappablePoints(): " + }, + { + "kind": "Reference", + "text": "SnapPoint", + "canonicalReference": "@tldraw/editor!SnapPoint:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "snappablePoints", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!SnapManager#snappableShapes:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get snappableShapes(): " + }, + { + "kind": "Reference", + "text": "GapNode", + "canonicalReference": "@tldraw/editor!~GapNode:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "snappableShapes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!SnapManager#snapPointsCache:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get snapPointsCache(): " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/store\")." + }, + { + "kind": "Reference", + "text": "ComputedCache", + "canonicalReference": "@tldraw/store!ComputedCache:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "SnapPoint", + "canonicalReference": "@tldraw/editor!SnapPoint:interface" + }, + { + "kind": "Content", + "text": "[], " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "snapPointsCache", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!SnapManager#snapResize:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "snapResize({ initialSelectionPageBounds, dragDelta, " + }, + { + "kind": "Reference", + "text": "handle", + "canonicalReference": "@tldraw/editor!~__type#handle" + }, + { + "kind": "Content", + "text": ": originalHandle, isAspectRatioLocked, isResizingFromCenter, }: " + }, + { + "kind": "Content", + "text": "{\n initialSelectionPageBounds: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";\n dragDelta: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n 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": ";\n isAspectRatioLocked: boolean;\n isResizingFromCenter: boolean;\n }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SnapData", + "canonicalReference": "@tldraw/editor!~SnapData:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 13, + "endIndex": 14 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ initialSelectionPageBounds, dragDelta, handle: originalHandle, isAspectRatioLocked, isResizingFromCenter, }", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 12 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "snapResize" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!SnapManager#snapThreshold:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get snapThreshold(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "snapThreshold", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!SnapManager#snapTranslate:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "snapTranslate({ lockedAxis, initialSelectionPageBounds, initialSelectionSnapPoints, dragDelta, }: " + }, + { + "kind": "Content", + "text": "{\n lockedAxis: 'x' | 'y' | null;\n initialSelectionSnapPoints: " + }, + { + "kind": "Reference", + "text": "SnapPoint", + "canonicalReference": "@tldraw/editor!SnapPoint:interface" + }, + { + "kind": "Content", + "text": "[];\n initialSelectionPageBounds: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";\n dragDelta: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SnapData", + "canonicalReference": "@tldraw/editor!~SnapData:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ lockedAxis, initialSelectionPageBounds, initialSelectionSnapPoints, dragDelta, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "snapTranslate" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!SnapManager#visibleGaps:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get visibleGaps(): " + }, + { + "kind": "Content", + "text": "{\n horizontal: " + }, + { + "kind": "Reference", + "text": "Gap", + "canonicalReference": "@tldraw/editor!~Gap:type" + }, + { + "kind": "Content", + "text": "[];\n vertical: " + }, + { + "kind": "Reference", + "text": "Gap", + "canonicalReference": "@tldraw/editor!~Gap:type" + }, + { + "kind": "Content", + "text": "[];\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "visibleGaps", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!SnapPoint:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface SnapPoint " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/managers/SnapManager.ts", + "releaseTag": "Public", + "name": "SnapPoint", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!SnapPoint#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!SnapPoint#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!SnapPoint#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!SnapPoint#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": "Function", + "canonicalReference": "@tldraw/editor!sortByIndex:function(1)", + "docComment": "/**\n * Sort by index.\n *\n * @param a - An object with an index property.\n *\n * @param b - An object with an index property.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function sortByIndex(a: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ", b: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "-1 | 0 | 1" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/reordering/reordering.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "a", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "b", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "sortByIndex" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/editor!Stadium2d:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class Stadium2d extends " + }, + { + "kind": "Reference", + "text": "Ellipse2d", + "canonicalReference": "@tldraw/editor!Ellipse2d:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Stadium2d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "Stadium2d", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/editor!Stadium2d:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Stadium2d` 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!Stadium2d#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": "Method", + "canonicalReference": "@tldraw/editor!Stadium2d#getVertices:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getVertices(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/editor!StateNode:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare abstract class StateNode implements " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/tools/StateNode.ts", + "releaseTag": "Public", + "isAbstract": true, + "name": "StateNode", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#_currentToolIdMask:member", + "docComment": "/**\n * This is a hack / escape hatch that will tell the editor to report a different state as active (in `currentToolId`) when this state is active. This is usually used when a tool transitions to a child of a different state for a certain interaction and then returns to the original tool when that interaction completes; and where we would want to show the original tool as active in the UI.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_currentToolIdMask: " + }, + { + "kind": "Reference", + "text": "Atom", + "canonicalReference": "@tldraw/state!Atom:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "_currentToolIdMask", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Constructor", + "canonicalReference": "@tldraw/editor!StateNode:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `StateNode` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(editor: " + }, + { + "kind": "Reference", + "text": "Editor", + "canonicalReference": "@tldraw/editor!Editor:class" + }, + { + "kind": "Content", + "text": ", parent?: " + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "editor", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "parent", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "children?: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode.children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static children?: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "TLStateNodeConstructor", + "canonicalReference": "@tldraw/editor!TLStateNodeConstructor:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#current:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "current: " + }, + { + "kind": "Reference", + "text": "Atom", + "canonicalReference": "@tldraw/state!Atom:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": " | undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "current", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#currentToolIdMask:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentToolIdMask(): " + }, + { + "kind": "Content", + "text": "string | undefined" + }, + { + "kind": "Content", + "text": ";\n\nset currentToolIdMask(id: string | undefined);" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "currentToolIdMask", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#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": "Property", + "canonicalReference": "@tldraw/editor!StateNode#enter:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "enter: " + }, + { + "kind": "Content", + "text": "(info: any, from: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "enter", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#exit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "exit: " + }, + { + "kind": "Content", + "text": "(info: any, from: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "exit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#handleEvent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "handleEvent: " + }, + { + "kind": "Content", + "text": "(info: " + }, + { + "kind": "Reference", + "text": "Exclude", + "canonicalReference": "!Exclude:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLEventInfo", + "canonicalReference": "@tldraw/editor!TLEventInfo:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TLPinchEventInfo", + "canonicalReference": "@tldraw/editor!TLPinchEventInfo:type" + }, + { + "kind": "Content", + "text": ">) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "handleEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#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 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode.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!StateNode#initial:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "initial?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "initial", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode.initial:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static initial?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "initial", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#isActive:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isActive: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isActive", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onCancel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onCancel?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onCancel']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onCancel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onComplete:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onComplete?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onComplete']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onComplete", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onDoubleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onDoubleClick?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onDoubleClick']" + }, + { + "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!StateNode#onEnter:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onEnter?: " + }, + { + "kind": "Reference", + "text": "TLEnterEventHandler", + "canonicalReference": "@tldraw/editor!TLEnterEventHandler:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onEnter", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onExit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onExit?: " + }, + { + "kind": "Reference", + "text": "TLExitEventHandler", + "canonicalReference": "@tldraw/editor!TLExitEventHandler:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onExit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onInterrupt:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onInterrupt?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onInterrupt']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onInterrupt", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onKeyDown:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onKeyDown?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onKeyDown']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onKeyDown", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onKeyRepeat:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onKeyRepeat?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onKeyRepeat']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onKeyRepeat", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onKeyUp:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onKeyUp?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onKeyUp']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onKeyUp", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onMiddleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onMiddleClick?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onMiddleClick']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onMiddleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onPointerDown:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onPointerDown?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onPointerDown']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onPointerDown", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onPointerMove:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onPointerMove?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onPointerMove']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onPointerMove", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onPointerUp:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onPointerUp?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onPointerUp']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onPointerUp", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onQuadrupleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onQuadrupleClick?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onQuadrupleClick']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onQuadrupleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onRightClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onRightClick?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onRightClick']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onRightClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onTripleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onTripleClick?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onTripleClick']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onTripleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#onWheel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onWheel?: " + }, + { + "kind": "Reference", + "text": "TLEventHandlers", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface" + }, + { + "kind": "Content", + "text": "['onWheel']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onWheel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#parent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "parent: " + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "parent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#path:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "path: " + }, + { + "kind": "Reference", + "text": "Computed", + "canonicalReference": "@tldraw/state!Computed:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "path", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#shapeType:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "shapeType?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "shapeType", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#transition:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "transition: " + }, + { + "kind": "Content", + "text": "(id: string, info: any) => this" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "transition", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!StateNode#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "TLStateNodeType", + "canonicalReference": "@tldraw/editor!~TLStateNodeType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 5 + } + ] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!stopEventPropagation:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "stopEventPropagation: " + }, + { + "kind": "Content", + "text": "(e: any) => any" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/dom.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "stopEventPropagation", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!SVGContainer:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function SVGContainer({ children, className, ...rest }: " + }, + { + "kind": "Reference", + "text": "SVGContainerProps", + "canonicalReference": "@tldraw/editor!SVGContainerProps:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/SVGContainer.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ children, className, ...rest }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "SVGContainer" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!SVGContainerProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type SVGContainerProps = " + }, + { + "kind": "Reference", + "text": "React.HTMLAttributes", + "canonicalReference": "@types/react!React.HTMLAttributes:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/SVGContainer.tsx", + "releaseTag": "Public", + "name": "SVGContainerProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!SvgExportContext:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface SvgExportContext " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/SvgExportContext.tsx", + "releaseTag": "Public", + "name": "SvgExportContext", + "preserveMemberOrder": false, + "members": [ + { + "kind": "MethodSignature", + "canonicalReference": "@tldraw/editor!SvgExportContext#addExportDef:member(1)", + "docComment": "/**\n * Add contents to the `` section of the export SVG. Each export def should have a unique key. If multiple defs come with the same key, only one will be added.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addExportDef(def: " + }, + { + "kind": "Reference", + "text": "SvgExportDef", + "canonicalReference": "@tldraw/editor!SvgExportDef:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "def", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "addExportDef" + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!SvgExportDef:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface SvgExportDef " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/SvgExportContext.tsx", + "releaseTag": "Public", + "name": "SvgExportDef", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!SvgExportDef#getElement:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getElement: " + }, + { + "kind": "Content", + "text": "() => null | " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getElement", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!SvgExportDef#key:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "key", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!TAB_ID:var", + "docComment": "/**\n * A string that is unique per browser tab\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "TAB_ID: " + }, + { + "kind": "Content", + "text": "string" + } + ], + "fileUrlPath": "packages/editor/src/lib/config/TLSessionStateSnapshot.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "TAB_ID", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!TAU:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "TAU: " + }, + { + "kind": "Content", + "text": "number" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "TAU", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLAnimationOptions:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLAnimationOptions = " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<{\n duration: number;\n easing: (t: number) => number;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/Editor.ts", + "releaseTag": "Public", + "name": "TLAnimationOptions", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLAnyShapeUtilConstructor:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLAnyShapeUtilConstructor = " + }, + { + "kind": "Reference", + "text": "TLShapeUtilConstructor", + "canonicalReference": "@tldraw/editor!TLShapeUtilConstructor:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/config/defaultShapes.ts", + "releaseTag": "Public", + "name": "TLAnyShapeUtilConstructor", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLBackgroundComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLBackgroundComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultBackground.tsx", + "releaseTag": "Public", + "name": "TLBackgroundComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLBaseBoxShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLBaseBoxShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/BaseBoxShapeUtil.tsx", + "releaseTag": "Public", + "name": "TLBaseBoxShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLBaseEventInfo:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLBaseEventInfo " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLBaseEventInfo", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLBaseEventInfo#altKey:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "altKey: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "altKey", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLBaseEventInfo#ctrlKey:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "ctrlKey: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "ctrlKey", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLBaseEventInfo#shiftKey:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "shiftKey: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "shiftKey", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLBaseEventInfo#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "UiEventType", + "canonicalReference": "@tldraw/editor!UiEventType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLBrushComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLBrushComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n brush: " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n color?: string;\n opacity?: number;\n className?: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultBrush.tsx", + "releaseTag": "Public", + "name": "TLBrushComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLCancelEvent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCancelEvent = " + }, + { + "kind": "Content", + "text": "(info: " + }, + { + "kind": "Reference", + "text": "TLCancelEventInfo", + "canonicalReference": "@tldraw/editor!TLCancelEventInfo:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLCancelEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLCancelEventInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCancelEventInfo = " + }, + { + "kind": "Content", + "text": "{\n type: 'misc';\n name: 'cancel';\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLCancelEventInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLClickEvent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLClickEvent = " + }, + { + "kind": "Content", + "text": "(info: " + }, + { + "kind": "Reference", + "text": "TLClickEventInfo", + "canonicalReference": "@tldraw/editor!TLClickEventInfo:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLClickEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLClickEventInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLClickEventInfo = " + }, + { + "kind": "Reference", + "text": "TLBaseEventInfo", + "canonicalReference": "@tldraw/editor!TLBaseEventInfo:interface" + }, + { + "kind": "Content", + "text": " & {\n type: 'click';\n name: " + }, + { + "kind": "Reference", + "text": "TLCLickEventName", + "canonicalReference": "@tldraw/editor!TLCLickEventName:type" + }, + { + "kind": "Content", + "text": ";\n point: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ";\n pointerId: number;\n button: number;\n phase: 'down' | 'settle' | 'up';\n} & " + }, + { + "kind": "Reference", + "text": "TLPointerEventTarget", + "canonicalReference": "@tldraw/editor!TLPointerEventTarget:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLClickEventInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLCLickEventName:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCLickEventName = " + }, + { + "kind": "Content", + "text": "'double_click' | 'quadruple_click' | 'triple_click'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLCLickEventName", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLCollaboratorHintComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCollaboratorHintComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n className?: string;\n point: " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n viewport: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";\n zoom: number;\n opacity?: number;\n color: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultCollaboratorHint.tsx", + "releaseTag": "Public", + "name": "TLCollaboratorHintComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLCommand:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCommand = " + }, + { + "kind": "Content", + "text": "{\n type: 'command';\n id: string;\n data: Data;\n name: Name;\n preservesRedoStack?: boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/history-types.ts", + "releaseTag": "Public", + "name": "TLCommand", + "typeParameters": [ + { + "typeParameterName": "Name", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "typeParameterName": "Data", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "typeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLCommandHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCommandHandler = " + }, + { + "kind": "Content", + "text": "{\n do: (data: Data) => void;\n undo: (data: Data) => void;\n redo?: (data: Data) => void;\n squash?: (prevData: Data, nextData: Data) => Data;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/history-types.ts", + "releaseTag": "Public", + "name": "TLCommandHandler", + "typeParameters": [ + { + "typeParameterName": "Data", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLCompleteEvent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCompleteEvent = " + }, + { + "kind": "Content", + "text": "(info: " + }, + { + "kind": "Reference", + "text": "TLCompleteEventInfo", + "canonicalReference": "@tldraw/editor!TLCompleteEventInfo:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLCompleteEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLCompleteEventInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCompleteEventInfo = " + }, + { + "kind": "Content", + "text": "{\n type: 'misc';\n name: 'complete';\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLCompleteEventInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLContent:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLContent " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/clipboard-types.ts", + "releaseTag": "Public", + "name": "TLContent", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLContent#assets:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "assets: " + }, + { + "kind": "Reference", + "text": "TLAsset", + "canonicalReference": "@tldraw/tlschema!TLAsset:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "assets", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLContent#rootShapeIds:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "rootShapeIds: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "rootShapeIds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLContent#schema:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "schema: " + }, + { + "kind": "Reference", + "text": "SerializedSchema", + "canonicalReference": "@tldraw/store!SerializedSchema:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "schema", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLContent#shapes:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "shapes: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "shapes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLCursorComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCursorComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n className?: string;\n point: null | " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n zoom: number;\n color?: string;\n name: null | string;\n chatMessage: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultCursor.tsx", + "releaseTag": "Public", + "name": "TLCursorComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!TldrawEditor:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "TldrawEditor: " + }, + { + "kind": "Reference", + "text": "React.NamedExoticComponent", + "canonicalReference": "@types/react!React.NamedExoticComponent:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TldrawEditorProps", + "canonicalReference": "@tldraw/editor!TldrawEditorProps:type" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/editor/src/lib/TldrawEditor.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "TldrawEditor", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps:interface", + "docComment": "/**\n * Base props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawEditor} components.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TldrawEditorBaseProps " + } + ], + "fileUrlPath": "packages/editor/src/lib/TldrawEditor.tsx", + "releaseTag": "Public", + "name": "TldrawEditorBaseProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps#autoFocus:member", + "docComment": "/**\n * Whether to automatically focus the editor when it mounts.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "autoFocus?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "autoFocus", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps#children:member", + "docComment": "/**\n * The component's children.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "children?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps#className:member", + "docComment": "/**\n * A classname to pass to the editor's container.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "className?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "className", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps#components:member", + "docComment": "/**\n * Overrides for the editor's components, such as handles, collaborator cursors, etc.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "components?: " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLEditorComponents", + "canonicalReference": "@tldraw/editor!TLEditorComponents:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "components", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps#inferDarkMode:member", + "docComment": "/**\n * Whether to infer dark mode from the user's OS. Defaults to false.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "inferDarkMode?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "inferDarkMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps#initialState:member", + "docComment": "/**\n * The editor's initial state (usually the id of the first active tool).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "initialState?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "initialState", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps#onMount:member", + "docComment": "/**\n * Called when the editor has mounted.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onMount?: " + }, + { + "kind": "Reference", + "text": "TLOnMountHandler", + "canonicalReference": "@tldraw/editor!TLOnMountHandler:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onMount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps#shapeUtils:member", + "docComment": "/**\n * An array of shape utils to use in the editor.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "shapeUtils?: " + }, + { + "kind": "Content", + "text": "readonly " + }, + { + "kind": "Reference", + "text": "TLAnyShapeUtilConstructor", + "canonicalReference": "@tldraw/editor!TLAnyShapeUtilConstructor:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "shapeUtils", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps#tools:member", + "docComment": "/**\n * An array of tools to add to the editor's state chart.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tools?: " + }, + { + "kind": "Content", + "text": "readonly " + }, + { + "kind": "Reference", + "text": "TLStateNodeConstructor", + "canonicalReference": "@tldraw/editor!TLStateNodeConstructor:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "tools", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps#user:member", + "docComment": "/**\n * The user interacting with the editor.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "user?: " + }, + { + "kind": "Reference", + "text": "TLUser", + "canonicalReference": "@tldraw/editor!~TLUser:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "user", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TldrawEditorProps:type", + "docComment": "/**\n * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawEditor} components.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TldrawEditorProps = " + }, + { + "kind": "Reference", + "text": "TldrawEditorBaseProps", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps:interface" + }, + { + "kind": "Content", + "text": " & ({\n store: " + }, + { + "kind": "Reference", + "text": "TLStore", + "canonicalReference": "@tldraw/tlschema!TLStore:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLStoreWithStatus", + "canonicalReference": "@tldraw/editor!TLStoreWithStatus:type" + }, + { + "kind": "Content", + "text": ";\n} | {\n store?: undefined;\n snapshot?: " + }, + { + "kind": "Reference", + "text": "StoreSnapshot", + "canonicalReference": "@tldraw/store!StoreSnapshot:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ">;\n initialData?: " + }, + { + "kind": "Reference", + "text": "SerializedStore", + "canonicalReference": "@tldraw/store!SerializedStore:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ">;\n persistenceKey?: string;\n sessionId?: string;\n defaultName?: string;\n})" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/TldrawEditor.tsx", + "releaseTag": "Public", + "name": "TldrawEditorProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 15 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLEditorComponents:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLEditorComponents = " + }, + { + "kind": "Content", + "text": "{\n [K in keyof " + }, + { + "kind": "Reference", + "text": "BaseEditorComponents", + "canonicalReference": "@tldraw/editor!~BaseEditorComponents:interface" + }, + { + "kind": "Content", + "text": "]: " + }, + { + "kind": "Reference", + "text": "BaseEditorComponents", + "canonicalReference": "@tldraw/editor!~BaseEditorComponents:interface" + }, + { + "kind": "Content", + "text": "[K] | null;\n} & {\n ErrorFallback: " + }, + { + "kind": "Reference", + "text": "TLErrorFallbackComponent", + "canonicalReference": "@tldraw/editor!~TLErrorFallbackComponent:type" + }, + { + "kind": "Content", + "text": ";\n ShapeErrorFallback: " + }, + { + "kind": "Reference", + "text": "TLShapeErrorFallbackComponent", + "canonicalReference": "@tldraw/editor!~TLShapeErrorFallbackComponent:type" + }, + { + "kind": "Content", + "text": ";\n ShapeIndicatorErrorFallback: " + }, + { + "kind": "Reference", + "text": "TLShapeIndicatorErrorFallbackComponent", + "canonicalReference": "@tldraw/editor!~TLShapeIndicatorErrorFallbackComponent:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/hooks/useEditorComponents.tsx", + "releaseTag": "Public", + "name": "TLEditorComponents", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLEditorOptions:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLEditorOptions " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/Editor.ts", + "releaseTag": "Public", + "name": "TLEditorOptions", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEditorOptions#getContainer:member", + "docComment": "/**\n * Should return a containing html element which has all the styles applied to the editor. If not given, the body element will be used.\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 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEditorOptions#inferDarkMode:member", + "docComment": "/**\n * (optional) Whether to infer dark mode from the user's system preferences. Defaults to false.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "inferDarkMode?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "inferDarkMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEditorOptions#initialState:member", + "docComment": "/**\n * (optional) The editor's initial active tool (or other state node id).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "initialState?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "initialState", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEditorOptions#shapeUtils:member", + "docComment": "/**\n * An array of shapes to use in the editor. These will be used to create and manage shapes in the editor.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "shapeUtils: " + }, + { + "kind": "Content", + "text": "readonly " + }, + { + "kind": "Reference", + "text": "TLShapeUtilConstructor", + "canonicalReference": "@tldraw/editor!TLShapeUtilConstructor:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUnknownShape", + "canonicalReference": "@tldraw/tlschema!TLUnknownShape:type" + }, + { + "kind": "Content", + "text": ">[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "shapeUtils", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEditorOptions#store:member", + "docComment": "/**\n * The Store instance to use for keeping the app's data. This may be prepopulated, e.g. by loading from a server or database.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "store: " + }, + { + "kind": "Reference", + "text": "TLStore", + "canonicalReference": "@tldraw/tlschema!TLStore:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "store", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEditorOptions#tools:member", + "docComment": "/**\n * An array of tools to use in the editor. These will be used to handle events and manage user interactions in the editor.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tools: " + }, + { + "kind": "Content", + "text": "readonly " + }, + { + "kind": "Reference", + "text": "TLStateNodeConstructor", + "canonicalReference": "@tldraw/editor!TLStateNodeConstructor:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "tools", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEditorOptions#user:member", + "docComment": "/**\n * (optional) A user defined externally to replace the default user.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "user?: " + }, + { + "kind": "Reference", + "text": "TLUser", + "canonicalReference": "@tldraw/editor!~TLUser:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "user", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLEnterEventHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLEnterEventHandler = " + }, + { + "kind": "Content", + "text": "(info: any, from: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLEnterEventHandler", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLErrorBoundaryProps:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLErrorBoundaryProps " + } + ], + "fileUrlPath": "packages/editor/src/lib/components/ErrorBoundary.tsx", + "releaseTag": "Public", + "name": "TLErrorBoundaryProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLErrorBoundaryProps#children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "children: " + }, + { + "kind": "Reference", + "text": "React.ReactNode", + "canonicalReference": "@types/react!React.ReactNode:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLErrorBoundaryProps#fallback:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "fallback: " + }, + { + "kind": "Reference", + "text": "TLErrorFallbackComponent", + "canonicalReference": "@tldraw/editor!~TLErrorFallbackComponent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "fallback", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLErrorBoundaryProps#onError:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onError?: " + }, + { + "kind": "Content", + "text": "((error: unknown) => void) | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onError", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLEventHandlers:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLEventHandlers " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLEventHandlers", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onCancel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onCancel: " + }, + { + "kind": "Reference", + "text": "TLCancelEvent", + "canonicalReference": "@tldraw/editor!TLCancelEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onCancel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onComplete:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onComplete: " + }, + { + "kind": "Reference", + "text": "TLCompleteEvent", + "canonicalReference": "@tldraw/editor!TLCompleteEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onComplete", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onDoubleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onDoubleClick: " + }, + { + "kind": "Reference", + "text": "TLClickEvent", + "canonicalReference": "@tldraw/editor!TLClickEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onDoubleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onInterrupt:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onInterrupt: " + }, + { + "kind": "Reference", + "text": "TLInterruptEvent", + "canonicalReference": "@tldraw/editor!TLInterruptEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onInterrupt", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onKeyDown:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onKeyDown: " + }, + { + "kind": "Reference", + "text": "TLKeyboardEvent", + "canonicalReference": "@tldraw/editor!TLKeyboardEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onKeyDown", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onKeyRepeat:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onKeyRepeat: " + }, + { + "kind": "Reference", + "text": "TLKeyboardEvent", + "canonicalReference": "@tldraw/editor!TLKeyboardEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onKeyRepeat", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onKeyUp:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onKeyUp: " + }, + { + "kind": "Reference", + "text": "TLKeyboardEvent", + "canonicalReference": "@tldraw/editor!TLKeyboardEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onKeyUp", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onMiddleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onMiddleClick: " + }, + { + "kind": "Reference", + "text": "TLPointerEvent", + "canonicalReference": "@tldraw/editor!TLPointerEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onMiddleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onPointerDown:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onPointerDown: " + }, + { + "kind": "Reference", + "text": "TLPointerEvent", + "canonicalReference": "@tldraw/editor!TLPointerEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onPointerDown", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onPointerMove:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onPointerMove: " + }, + { + "kind": "Reference", + "text": "TLPointerEvent", + "canonicalReference": "@tldraw/editor!TLPointerEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onPointerMove", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onPointerUp:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onPointerUp: " + }, + { + "kind": "Reference", + "text": "TLPointerEvent", + "canonicalReference": "@tldraw/editor!TLPointerEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onPointerUp", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onQuadrupleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onQuadrupleClick: " + }, + { + "kind": "Reference", + "text": "TLClickEvent", + "canonicalReference": "@tldraw/editor!TLClickEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onQuadrupleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onRightClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onRightClick: " + }, + { + "kind": "Reference", + "text": "TLPointerEvent", + "canonicalReference": "@tldraw/editor!TLPointerEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onRightClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onTripleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onTripleClick: " + }, + { + "kind": "Reference", + "text": "TLClickEvent", + "canonicalReference": "@tldraw/editor!TLClickEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onTripleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventHandlers#onWheel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onWheel: " + }, + { + "kind": "Reference", + "text": "TLWheelEvent", + "canonicalReference": "@tldraw/editor!TLWheelEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onWheel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLEventInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLEventInfo = " + }, + { + "kind": "Reference", + "text": "TLCancelEventInfo", + "canonicalReference": "@tldraw/editor!TLCancelEventInfo:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLClickEventInfo", + "canonicalReference": "@tldraw/editor!TLClickEventInfo:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLCompleteEventInfo", + "canonicalReference": "@tldraw/editor!TLCompleteEventInfo:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLInterruptEventInfo", + "canonicalReference": "@tldraw/editor!TLInterruptEventInfo:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLKeyboardEventInfo", + "canonicalReference": "@tldraw/editor!TLKeyboardEventInfo:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLPinchEventInfo", + "canonicalReference": "@tldraw/editor!TLPinchEventInfo:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLPointerEventInfo", + "canonicalReference": "@tldraw/editor!TLPointerEventInfo:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLWheelEventInfo", + "canonicalReference": "@tldraw/editor!TLWheelEventInfo:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLEventInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 16 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLEventMap:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLEventMap " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/emit-types.ts", + "releaseTag": "Public", + "name": "TLEventMap", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#\"change-history\":member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "'change-history': " + }, + { + "kind": "Content", + "text": "[{\n reason: 'bail';\n markId?: string;\n } | {\n reason: 'push' | 'redo' | 'undo';\n }]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "\"change-history\"", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#\"mark-history\":member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "'mark-history': " + }, + { + "kind": "Content", + "text": "[{\n id: string;\n }]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "\"mark-history\"", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#\"max-shapes\":member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "'max-shapes': " + }, + { + "kind": "Content", + "text": "[{\n name: string;\n pageId: " + }, + { + "kind": "Reference", + "text": "TLPageId", + "canonicalReference": "@tldraw/tlschema!TLPageId:type" + }, + { + "kind": "Content", + "text": ";\n count: number;\n }]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "\"max-shapes\"", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#\"stop-camera-animation\":member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "'stop-camera-animation': " + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "\"stop-camera-animation\"", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#\"stop-following\":member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "'stop-following': " + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "\"stop-following\"", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#change:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "change: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "HistoryEntry", + "canonicalReference": "@tldraw/store!HistoryEntry:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ">]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "change", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#crash:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "crash: " + }, + { + "kind": "Content", + "text": "[{\n error: unknown;\n }]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "crash", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#event:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "event: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "TLEventInfo", + "canonicalReference": "@tldraw/editor!TLEventInfo:type" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "event", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#frame:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "frame: " + }, + { + "kind": "Content", + "text": "[number]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "frame", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#mount:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "mount: " + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "mount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#tick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tick: " + }, + { + "kind": "Content", + "text": "[number]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "tick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLEventMap#update:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "update: " + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "update", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLEventMapHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLEventMapHandler = " + }, + { + "kind": "Content", + "text": "(...args: " + }, + { + "kind": "Reference", + "text": "TLEventMap", + "canonicalReference": "@tldraw/editor!TLEventMap:interface" + }, + { + "kind": "Content", + "text": "[T]) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/emit-types.ts", + "releaseTag": "Public", + "name": "TLEventMapHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 4, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLEventName:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLEventName = " + }, + { + "kind": "Content", + "text": "'cancel' | 'complete' | 'interrupt' | 'wheel' | " + }, + { + "kind": "Reference", + "text": "TLCLickEventName", + "canonicalReference": "@tldraw/editor!TLCLickEventName:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLKeyboardEventName", + "canonicalReference": "@tldraw/editor!TLKeyboardEventName:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLPinchEventName", + "canonicalReference": "@tldraw/editor!TLPinchEventName:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLPointerEventName", + "canonicalReference": "@tldraw/editor!TLPointerEventName:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLEventName", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 9 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLExitEventHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLExitEventHandler = " + }, + { + "kind": "Content", + "text": "(info: any, to: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLExitEventHandler", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLExternalAssetContent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLExternalAssetContent = " + }, + { + "kind": "Content", + "text": "{\n type: 'file';\n file: " + }, + { + "kind": "Reference", + "text": "File", + "canonicalReference": "!File:interface" + }, + { + "kind": "Content", + "text": ";\n} | {\n type: 'url';\n url: string;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/external-content.ts", + "releaseTag": "Public", + "name": "TLExternalAssetContent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLExternalContent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLExternalContent = " + }, + { + "kind": "Content", + "text": "{\n sources?: " + }, + { + "kind": "Reference", + "text": "TLExternalContentSource", + "canonicalReference": "@tldraw/editor!TLExternalContentSource:type" + }, + { + "kind": "Content", + "text": "[];\n point?: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ";\n} & ({\n type: 'embed';\n url: string;\n embed: " + }, + { + "kind": "Reference", + "text": "EmbedDefinition", + "canonicalReference": "@tldraw/tlschema!EmbedDefinition:type" + }, + { + "kind": "Content", + "text": ";\n} | {\n type: 'files';\n files: " + }, + { + "kind": "Reference", + "text": "File", + "canonicalReference": "!File:interface" + }, + { + "kind": "Content", + "text": "[];\n ignoreParent: boolean;\n} | {\n type: 'svg-text';\n text: string;\n} | {\n type: 'text';\n text: string;\n} | {\n type: 'url';\n url: string;\n})" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/external-content.ts", + "releaseTag": "Public", + "name": "TLExternalContent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 10 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLExternalContentSource:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLExternalContentSource = " + }, + { + "kind": "Content", + "text": "{\n type: 'error';\n data: null | string;\n reason: string;\n} | {\n type: 'excalidraw';\n data: any;\n} | {\n type: 'text';\n data: string;\n subtype: 'html' | 'json' | 'text' | 'url';\n} | {\n type: 'tldraw';\n data: " + }, + { + "kind": "Reference", + "text": "TLContent", + "canonicalReference": "@tldraw/editor!TLContent:interface" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/external-content.ts", + "releaseTag": "Public", + "name": "TLExternalContentSource", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLGridComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLGridComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n x: number;\n y: number;\n z: number;\n size: number;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultGrid.tsx", + "releaseTag": "Public", + "name": "TLGridComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLHandleComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLHandleComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n shapeId: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n handle: " + }, + { + "kind": "Reference", + "text": "TLHandle", + "canonicalReference": "@tldraw/tlschema!TLHandle:interface" + }, + { + "kind": "Content", + "text": ";\n zoom: number;\n isCoarse: boolean;\n className?: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultHandle.tsx", + "releaseTag": "Public", + "name": "TLHandleComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLHandlesComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLHandlesComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n className?: string;\n children: any;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultHandles.tsx", + "releaseTag": "Public", + "name": "TLHandlesComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLHistoryEntry:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLHistoryEntry = " + }, + { + "kind": "Reference", + "text": "TLCommand", + "canonicalReference": "@tldraw/editor!TLCommand:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLHistoryMark", + "canonicalReference": "@tldraw/editor!TLHistoryMark:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/history-types.ts", + "releaseTag": "Public", + "name": "TLHistoryEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLHistoryMark:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLHistoryMark = " + }, + { + "kind": "Content", + "text": "{\n type: 'STOP';\n id: string;\n onUndo: boolean;\n onRedo: boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/history-types.ts", + "releaseTag": "Public", + "name": "TLHistoryMark", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLHoveredShapeIndicatorComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLHoveredShapeIndicatorComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n shapeId: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultHoveredShapeIndicator.tsx", + "releaseTag": "Public", + "name": "TLHoveredShapeIndicatorComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLInterruptEvent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLInterruptEvent = " + }, + { + "kind": "Content", + "text": "(info: " + }, + { + "kind": "Reference", + "text": "TLInterruptEventInfo", + "canonicalReference": "@tldraw/editor!TLInterruptEventInfo:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLInterruptEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLInterruptEventInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLInterruptEventInfo = " + }, + { + "kind": "Content", + "text": "{\n type: 'misc';\n name: 'interrupt';\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLInterruptEventInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLKeyboardEvent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLKeyboardEvent = " + }, + { + "kind": "Content", + "text": "(info: " + }, + { + "kind": "Reference", + "text": "TLKeyboardEventInfo", + "canonicalReference": "@tldraw/editor!TLKeyboardEventInfo:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLKeyboardEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLKeyboardEventInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLKeyboardEventInfo = " + }, + { + "kind": "Reference", + "text": "TLBaseEventInfo", + "canonicalReference": "@tldraw/editor!TLBaseEventInfo:interface" + }, + { + "kind": "Content", + "text": " & {\n type: 'keyboard';\n name: " + }, + { + "kind": "Reference", + "text": "TLKeyboardEventName", + "canonicalReference": "@tldraw/editor!TLKeyboardEventName:type" + }, + { + "kind": "Content", + "text": ";\n key: string;\n code: string;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLKeyboardEventInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLKeyboardEventName:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLKeyboardEventName = " + }, + { + "kind": "Content", + "text": "'key_down' | 'key_repeat' | 'key_up'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLKeyboardEventName", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnBeforeCreateHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnBeforeCreateHandler = " + }, + { + "kind": "Content", + "text": "(next: T) => T | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnBeforeCreateHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnBeforeUpdateHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnBeforeUpdateHandler = " + }, + { + "kind": "Content", + "text": "(prev: T, next: T) => T | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnBeforeUpdateHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnChildrenChangeHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnChildrenChangeHandler = " + }, + { + "kind": "Content", + "text": "(shape: T) => " + }, + { + "kind": "Reference", + "text": "TLShapePartial", + "canonicalReference": "@tldraw/tlschema!TLShapePartial:type" + }, + { + "kind": "Content", + "text": "[] | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnChildrenChangeHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnClickHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnClickHandler = " + }, + { + "kind": "Content", + "text": "(shape: T) => " + }, + { + "kind": "Reference", + "text": "TLShapePartial", + "canonicalReference": "@tldraw/tlschema!TLShapePartial:type" + }, + { + "kind": "Content", + "text": " | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnClickHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnDoubleClickHandleHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnDoubleClickHandleHandler = " + }, + { + "kind": "Content", + "text": "(shape: T, handle: " + }, + { + "kind": "Reference", + "text": "TLHandle", + "canonicalReference": "@tldraw/tlschema!TLHandle:interface" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "TLShapePartial", + "canonicalReference": "@tldraw/tlschema!TLShapePartial:type" + }, + { + "kind": "Content", + "text": " | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnDoubleClickHandleHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnDoubleClickHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnDoubleClickHandler = " + }, + { + "kind": "Content", + "text": "(shape: T) => " + }, + { + "kind": "Reference", + "text": "TLShapePartial", + "canonicalReference": "@tldraw/tlschema!TLShapePartial:type" + }, + { + "kind": "Content", + "text": " | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnDoubleClickHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnDragHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnDragHandler = " + }, + { + "kind": "Content", + "text": "(shape: T, shapes: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": "[]) => R" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnDragHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeTokenRange": { + "startIndex": 5, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnEditEndHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnEditEndHandler = " + }, + { + "kind": "Content", + "text": "(shape: T) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnEditEndHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnHandleChangeHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnHandleChangeHandler = " + }, + { + "kind": "Content", + "text": "(shape: T, info: {\n handle: " + }, + { + "kind": "Reference", + "text": "TLHandle", + "canonicalReference": "@tldraw/tlschema!TLHandle:interface" + }, + { + "kind": "Content", + "text": ";\n isPrecise: boolean;\n}) => " + }, + { + "kind": "Reference", + "text": "TLShapePartial", + "canonicalReference": "@tldraw/tlschema!TLShapePartial:type" + }, + { + "kind": "Content", + "text": " | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnHandleChangeHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnMountHandler:type", + "docComment": "/**\n * Called when the editor has mounted.\n *\n * @param editor - The editor instance.\n *\n * @example\n * ```ts\n * editor.selectAll()} />\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnMountHandler = " + }, + { + "kind": "Content", + "text": "(editor: " + }, + { + "kind": "Reference", + "text": "Editor", + "canonicalReference": "@tldraw/editor!Editor:class" + }, + { + "kind": "Content", + "text": ") => (() => undefined | void) | undefined | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/TldrawEditor.tsx", + "releaseTag": "Public", + "name": "TLOnMountHandler", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnResizeEndHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnResizeEndHandler = " + }, + { + "kind": "Reference", + "text": "TLEventChangeHandler", + "canonicalReference": "@tldraw/editor!~TLEventChangeHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnResizeEndHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnResizeHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnResizeHandler = " + }, + { + "kind": "Content", + "text": "(shape: T, info: " + }, + { + "kind": "Reference", + "text": "TLResizeInfo", + "canonicalReference": "@tldraw/editor!TLResizeInfo:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "Omit", + "canonicalReference": "!Omit:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLShapePartial", + "canonicalReference": "@tldraw/tlschema!TLShapePartial:type" + }, + { + "kind": "Content", + "text": ", 'id' | 'type'> | undefined | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnResizeHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 10 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnResizeStartHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnResizeStartHandler = " + }, + { + "kind": "Reference", + "text": "TLEventStartHandler", + "canonicalReference": "@tldraw/editor!~TLEventStartHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnResizeStartHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnRotateEndHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnRotateEndHandler = " + }, + { + "kind": "Reference", + "text": "TLEventChangeHandler", + "canonicalReference": "@tldraw/editor!~TLEventChangeHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnRotateEndHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnRotateHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnRotateHandler = " + }, + { + "kind": "Reference", + "text": "TLEventChangeHandler", + "canonicalReference": "@tldraw/editor!~TLEventChangeHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnRotateHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnRotateStartHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnRotateStartHandler = " + }, + { + "kind": "Reference", + "text": "TLEventStartHandler", + "canonicalReference": "@tldraw/editor!~TLEventStartHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnRotateStartHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnTranslateEndHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnTranslateEndHandler = " + }, + { + "kind": "Reference", + "text": "TLEventChangeHandler", + "canonicalReference": "@tldraw/editor!~TLEventChangeHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnTranslateEndHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnTranslateHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnTranslateHandler = " + }, + { + "kind": "Reference", + "text": "TLEventChangeHandler", + "canonicalReference": "@tldraw/editor!~TLEventChangeHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnTranslateHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLOnTranslateStartHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOnTranslateStartHandler = " + }, + { + "kind": "Reference", + "text": "TLEventStartHandler", + "canonicalReference": "@tldraw/editor!~TLEventStartHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLOnTranslateStartHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLPinchEvent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLPinchEvent = " + }, + { + "kind": "Content", + "text": "(info: " + }, + { + "kind": "Reference", + "text": "TLPinchEventInfo", + "canonicalReference": "@tldraw/editor!TLPinchEventInfo:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLPinchEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLPinchEventInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLPinchEventInfo = " + }, + { + "kind": "Reference", + "text": "TLBaseEventInfo", + "canonicalReference": "@tldraw/editor!TLBaseEventInfo:interface" + }, + { + "kind": "Content", + "text": " & {\n type: 'pinch';\n name: " + }, + { + "kind": "Reference", + "text": "TLPinchEventName", + "canonicalReference": "@tldraw/editor!TLPinchEventName:type" + }, + { + "kind": "Content", + "text": ";\n point: " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n delta: " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLPinchEventInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 9 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLPinchEventName:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLPinchEventName = " + }, + { + "kind": "Content", + "text": "'pinch_end' | 'pinch_start' | 'pinch'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLPinchEventName", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLPointerEvent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLPointerEvent = " + }, + { + "kind": "Content", + "text": "(info: " + }, + { + "kind": "Reference", + "text": "TLPointerEventInfo", + "canonicalReference": "@tldraw/editor!TLPointerEventInfo:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLPointerEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLPointerEventInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLPointerEventInfo = " + }, + { + "kind": "Reference", + "text": "TLBaseEventInfo", + "canonicalReference": "@tldraw/editor!TLBaseEventInfo:interface" + }, + { + "kind": "Content", + "text": " & {\n type: 'pointer';\n name: " + }, + { + "kind": "Reference", + "text": "TLPointerEventName", + "canonicalReference": "@tldraw/editor!TLPointerEventName:type" + }, + { + "kind": "Content", + "text": ";\n point: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ";\n pointerId: number;\n button: number;\n isPen: boolean;\n} & " + }, + { + "kind": "Reference", + "text": "TLPointerEventTarget", + "canonicalReference": "@tldraw/editor!TLPointerEventTarget:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLPointerEventInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLPointerEventName:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLPointerEventName = " + }, + { + "kind": "Content", + "text": "'middle_click' | 'pointer_down' | 'pointer_move' | 'pointer_up' | 'right_click'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLPointerEventName", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLPointerEventTarget:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLPointerEventTarget = " + }, + { + "kind": "Content", + "text": "{\n target: 'canvas';\n shape?: undefined;\n} | {\n target: 'handle';\n shape: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": ";\n handle: " + }, + { + "kind": "Reference", + "text": "TLHandle", + "canonicalReference": "@tldraw/tlschema!TLHandle:interface" + }, + { + "kind": "Content", + "text": ";\n} | {\n target: 'selection';\n handle?: " + }, + { + "kind": "Reference", + "text": "TLSelectionHandle", + "canonicalReference": "@tldraw/editor!TLSelectionHandle:type" + }, + { + "kind": "Content", + "text": ";\n shape?: undefined;\n} | {\n target: 'shape';\n shape: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLPointerEventTarget", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 10 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLResizeHandle:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLResizeHandle = " + }, + { + "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/editor/types/selection-types.ts", + "releaseTag": "Public", + "name": "TLResizeHandle", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLResizeInfo:type", + "docComment": "/**\n * Info about a resize.\n *\n * @param newPoint - The new local position of the shape.\n *\n * @param handle - The handle being dragged.\n *\n * @param mode - The type of resize.\n *\n * @param scaleX - The scale in the x-axis.\n *\n * @param scaleY - The scale in the y-axis.\n *\n * @param initialBounds - The bounds of the shape at the start of the resize.\n *\n * @param initialShape - The shape at the start of the resize.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLResizeInfo = " + }, + { + "kind": "Content", + "text": "{\n newPoint: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "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": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";\n initialShape: T;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLResizeInfo", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 12 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLResizeMode:type", + "docComment": "/**\n * The type of resize.\n *\n * 'scale_shape' - The shape is being scaled, usually as part of a larger selection.\n *\n * 'resize_bounds' - The user is directly manipulating an individual shape's bounds using a resize handle. It is up to shape util implementers to decide how they want to handle the two situations.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLResizeMode = " + }, + { + "kind": "Content", + "text": "'resize_bounds' | 'scale_shape'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLResizeMode", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLResizeShapeOptions:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLResizeShapeOptions = " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<{\n initialBounds: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";\n scaleOrigin: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ";\n scaleAxisRotation: number;\n initialShape: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": ";\n initialPageTransform: " + }, + { + "kind": "Reference", + "text": "MatLike", + "canonicalReference": "@tldraw/editor!~MatLike:type" + }, + { + "kind": "Content", + "text": ";\n dragHandle: " + }, + { + "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}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/Editor.ts", + "releaseTag": "Public", + "name": "TLResizeShapeOptions", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 15 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLRotationSnapshot:type", + "docComment": "/**\n * Info about a rotation that can be applied to the editor's selected shapes.\n *\n * @param selectionPageCenter - The center of the selection in page coordinates\n *\n * @param initialCursorAngle - The angle of the cursor relative to the selection center when the rotation started\n *\n * @param initialSelectionRotation - The rotation of the selection when the rotation started\n *\n * @param shapeSnapshots - Info about each shape that is being rotated\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLRotationSnapshot = " + }, + { + "kind": "Content", + "text": "{\n selectionPageCenter: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n initialCursorAngle: number;\n initialSelectionRotation: number;\n shapeSnapshots: {\n shape: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": ";\n initialPagePoint: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";\n }[];\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/rotation.ts", + "releaseTag": "Public", + "name": "TLRotationSnapshot", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLScribbleComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLScribbleComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n scribble: " + }, + { + "kind": "Reference", + "text": "TLScribble", + "canonicalReference": "@tldraw/tlschema!TLScribble:type" + }, + { + "kind": "Content", + "text": ";\n zoom: number;\n color?: string;\n opacity?: number;\n className?: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultScribble.tsx", + "releaseTag": "Public", + "name": "TLScribbleComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLSelectionBackgroundComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLSelectionBackgroundComponent = " + }, + { + "kind": "Reference", + "text": "React.ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n bounds: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";\n rotation: number;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSelectionBackground.tsx", + "releaseTag": "Public", + "name": "TLSelectionBackgroundComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLSelectionForegroundComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLSelectionForegroundComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n bounds: " + }, + { + "kind": "Reference", + "text": "Box2d", + "canonicalReference": "@tldraw/editor!Box2d:class" + }, + { + "kind": "Content", + "text": ";\n rotation: number;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSelectionForeground.tsx", + "releaseTag": "Public", + "name": "TLSelectionForegroundComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLSelectionHandle:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLSelectionHandle = " + }, + { + "kind": "Reference", + "text": "RotateCorner", + "canonicalReference": "@tldraw/editor!RotateCorner:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "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/editor/types/selection-types.ts", + "releaseTag": "Public", + "name": "TLSelectionHandle", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLSessionStateSnapshot:interface", + "docComment": "/**\n * The state of the editor instance, not including any document state.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLSessionStateSnapshot " + } + ], + "fileUrlPath": "packages/editor/src/lib/config/TLSessionStateSnapshot.ts", + "releaseTag": "Public", + "name": "TLSessionStateSnapshot", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLSessionStateSnapshot#currentPageId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "currentPageId: " + }, + { + "kind": "Reference", + "text": "TLPageId", + "canonicalReference": "@tldraw/tlschema!TLPageId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "currentPageId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLSessionStateSnapshot#exportBackground:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "exportBackground: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "exportBackground", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLSessionStateSnapshot#isDebugMode:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isDebugMode: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isDebugMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLSessionStateSnapshot#isFocusMode:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isFocusMode: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isFocusMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLSessionStateSnapshot#isGridMode:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isGridMode: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isGridMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLSessionStateSnapshot#isToolLocked:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isToolLocked: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isToolLocked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLSessionStateSnapshot#pageStates:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "pageStates: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<{\n pageId: " + }, + { + "kind": "Reference", + "text": "TLPageId", + "canonicalReference": "@tldraw/tlschema!TLPageId:type" + }, + { + "kind": "Content", + "text": ";\n camera: {\n x: number;\n y: number;\n z: number;\n };\n selectedShapeIds: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[];\n focusedGroupId: null | " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n }>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "pageStates", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 9 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLSessionStateSnapshot#version:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "version: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "version", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLShapeIndicatorComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLShapeIndicatorComponent = " + }, + { + "kind": "Reference", + "text": "React.ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n id: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n color?: string | undefined;\n opacity?: number;\n className?: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/ShapeIndicator.tsx", + "releaseTag": "Public", + "name": "TLShapeIndicatorComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLShapeUtilCanvasSvgDef:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLShapeUtilCanvasSvgDef " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLShapeUtilCanvasSvgDef", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLShapeUtilCanvasSvgDef#component:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component: " + }, + { + "kind": "Reference", + "text": "React.ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "component", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLShapeUtilCanvasSvgDef#key:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "key", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLShapeUtilConstructor:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLShapeUtilConstructor" + }, + { + "kind": "Content", + "text": " = " + }, + { + "kind": "Reference", + "text": "ShapeUtil", + "canonicalReference": "@tldraw/editor!ShapeUtil:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "> " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "defaultTypeTokenRange": { + "startIndex": 6, + "endIndex": 8 + } + } + ], + "name": "TLShapeUtilConstructor", + "preserveMemberOrder": false, + "members": [ + { + "kind": "ConstructSignature", + "canonicalReference": "@tldraw/editor!TLShapeUtilConstructor:new(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "new (editor: " + }, + { + "kind": "Reference", + "text": "Editor", + "canonicalReference": "@tldraw/editor!Editor:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "U" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "editor", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ] + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLShapeUtilConstructor#migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "migrations?: " + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLShapeUtilConstructor#props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "props?: " + }, + { + "kind": "Reference", + "text": "ShapeProps", + "canonicalReference": "@tldraw/tlschema!ShapeProps:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLShapeUtilConstructor#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Content", + "text": "T['type']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLShapeUtilFlag = " + }, + { + "kind": "Content", + "text": "(shape: T) => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts", + "releaseTag": "Public", + "name": "TLShapeUtilFlag", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLSnapLineComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLSnapLineComponent = " + }, + { + "kind": "Reference", + "text": "React.ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "<{\n className?: string;\n line: " + }, + { + "kind": "Reference", + "text": "SnapLine", + "canonicalReference": "@tldraw/editor!SnapLine:type" + }, + { + "kind": "Content", + "text": ";\n zoom: number;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSnapLine.tsx", + "releaseTag": "Public", + "name": "TLSnapLineComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLSpinnerComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLSpinnerComponent = " + }, + { + "kind": "Reference", + "text": "ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSpinner.tsx", + "releaseTag": "Public", + "name": "TLSpinnerComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLStateNodeConstructor:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLStateNodeConstructor " + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/tools/StateNode.ts", + "releaseTag": "Public", + "name": "TLStateNodeConstructor", + "preserveMemberOrder": false, + "members": [ + { + "kind": "ConstructSignature", + "canonicalReference": "@tldraw/editor!TLStateNodeConstructor:new(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "new (editor: " + }, + { + "kind": "Reference", + "text": "Editor", + "canonicalReference": "@tldraw/editor!Editor:class" + }, + { + "kind": "Content", + "text": ", parent?: " + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "editor", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "parent", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ] + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLStateNodeConstructor#children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "children?: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "TLStateNodeConstructor", + "canonicalReference": "@tldraw/editor!TLStateNodeConstructor:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLStateNodeConstructor#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!TLStateNodeConstructor#initial:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "initial?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "initial", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLStoreEventInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLStoreEventInfo = " + }, + { + "kind": "Reference", + "text": "HistoryEntry", + "canonicalReference": "@tldraw/store!HistoryEntry:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/config/createTLStore.ts", + "releaseTag": "Public", + "name": "TLStoreEventInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLStoreOptions:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLStoreOptions = " + }, + { + "kind": "Content", + "text": "{\n initialData?: " + }, + { + "kind": "Reference", + "text": "SerializedStore", + "canonicalReference": "@tldraw/store!SerializedStore:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ">;\n defaultName?: string;\n} & ({\n schema?: " + }, + { + "kind": "Reference", + "text": "StoreSchema", + "canonicalReference": "@tldraw/store!StoreSchema:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TLStoreProps", + "canonicalReference": "@tldraw/tlschema!TLStoreProps:type" + }, + { + "kind": "Content", + "text": ">;\n} | {\n shapeUtils?: readonly " + }, + { + "kind": "Reference", + "text": "TLAnyShapeUtilConstructor", + "canonicalReference": "@tldraw/editor!TLAnyShapeUtilConstructor:type" + }, + { + "kind": "Content", + "text": "[];\n})" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/config/createTLStore.ts", + "releaseTag": "Public", + "name": "TLStoreOptions", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 14 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLStoreWithStatus:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLStoreWithStatus = " + }, + { + "kind": "Content", + "text": "{\n readonly status: 'error';\n readonly store?: undefined;\n readonly error: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": ";\n} | {\n readonly status: 'loading';\n readonly store?: undefined;\n readonly error?: undefined;\n} | {\n readonly status: 'not-synced';\n readonly store: " + }, + { + "kind": "Reference", + "text": "TLStore", + "canonicalReference": "@tldraw/tlschema!TLStore:type" + }, + { + "kind": "Content", + "text": ";\n readonly error?: undefined;\n} | {\n readonly status: 'synced-local';\n readonly store: " + }, + { + "kind": "Reference", + "text": "TLStore", + "canonicalReference": "@tldraw/tlschema!TLStore:type" + }, + { + "kind": "Content", + "text": ";\n readonly error?: undefined;\n} | {\n readonly status: 'synced-remote';\n readonly connectionStatus: 'offline' | 'online';\n readonly store: " + }, + { + "kind": "Reference", + "text": "TLStore", + "canonicalReference": "@tldraw/tlschema!TLStore:type" + }, + { + "kind": "Content", + "text": ";\n readonly error?: undefined;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/sync/StoreWithStatus.ts", + "releaseTag": "Public", + "name": "TLStoreWithStatus", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 10 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLSvgDefsComponent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLSvgDefsComponent = " + }, + { + "kind": "Reference", + "text": "React.ComponentType", + "canonicalReference": "@types/react!React.ComponentType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/.tsbuild-api/lib/components/default-components/DefaultSvgDefs.d.ts", + "releaseTag": "Public", + "name": "TLSvgDefsComponent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLTickEvent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLTickEvent = " + }, + { + "kind": "Content", + "text": "(elapsed: number) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLTickEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/editor!TLUserPreferences:interface", + "docComment": "/**\n * A user of tldraw\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUserPreferences " + } + ], + "fileUrlPath": "packages/editor/src/lib/config/TLUserPreferences.ts", + "releaseTag": "Public", + "name": "TLUserPreferences", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLUserPreferences#animationSpeed:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "animationSpeed?: " + }, + { + "kind": "Content", + "text": "null | number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "animationSpeed", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLUserPreferences#color:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "color?: " + }, + { + "kind": "Content", + "text": "null | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "color", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLUserPreferences#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!TLUserPreferences#isDarkMode:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isDarkMode?: " + }, + { + "kind": "Content", + "text": "boolean | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "isDarkMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLUserPreferences#isSnapMode:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isSnapMode?: " + }, + { + "kind": "Content", + "text": "boolean | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "isSnapMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLUserPreferences#locale:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "locale?: " + }, + { + "kind": "Content", + "text": "null | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "locale", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/editor!TLUserPreferences#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name?: " + }, + { + "kind": "Content", + "text": "null | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLWheelEvent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLWheelEvent = " + }, + { + "kind": "Content", + "text": "(info: " + }, + { + "kind": "Reference", + "text": "TLWheelEventInfo", + "canonicalReference": "@tldraw/editor!TLWheelEventInfo:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLWheelEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!TLWheelEventInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLWheelEventInfo = " + }, + { + "kind": "Reference", + "text": "TLBaseEventInfo", + "canonicalReference": "@tldraw/editor!TLBaseEventInfo:interface" + }, + { + "kind": "Content", + "text": " & {\n type: 'wheel';\n name: 'wheel';\n delta: " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "TLWheelEventInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!toDomPrecision:function(1)", + "docComment": "/**\n * The DOM likes values to be fixed to 3 decimal places\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function toDomPrecision(v: " + }, + { + "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": "v", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "toDomPrecision" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!toFixed:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function toFixed(v: " + }, + { + "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": "v", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "toFixed" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!toPrecision:function(1)", + "docComment": "/**\n * Get a number to a precision.\n *\n * @param n - The number.\n *\n * @param precision - The precision.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function toPrecision(n: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", precision?: " + }, + { + "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": "precision", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "name": "toPrecision" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!UiEvent:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type UiEvent = " + }, + { + "kind": "Reference", + "text": "TLCancelEvent", + "canonicalReference": "@tldraw/editor!TLCancelEvent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLClickEvent", + "canonicalReference": "@tldraw/editor!TLClickEvent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLCompleteEvent", + "canonicalReference": "@tldraw/editor!TLCompleteEvent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLKeyboardEvent", + "canonicalReference": "@tldraw/editor!TLKeyboardEvent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLPinchEvent", + "canonicalReference": "@tldraw/editor!TLPinchEvent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLPointerEvent", + "canonicalReference": "@tldraw/editor!TLPointerEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "UiEvent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!UiEventType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type UiEventType = " + }, + { + "kind": "Content", + "text": "'click' | 'keyboard' | 'pinch' | 'pointer' | 'wheel' | 'zoom'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts", + "releaseTag": "Public", + "name": "UiEventType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!uniq:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function uniq(array: " + }, + { + "kind": "Content", + "text": "{\n readonly length: number;\n readonly [n: number]: T;\n} | null | undefined" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/uniq.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "array", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "uniq" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!uniqueId:function(1)", + "docComment": "/**\n * Generate a unique id.\n *\n * @example\n * ```ts\n * const id = uniqueId()\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function uniqueId(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/utils/uniqueId.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "uniqueId" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!useContainer:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useContainer(): " + }, + { + "kind": "Reference", + "text": "HTMLDivElement", + "canonicalReference": "!HTMLDivElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/hooks/useContainer.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useContainer" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/editor!useEditor:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "useEditor: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Editor", + "canonicalReference": "@tldraw/editor!Editor:class" + } + ], + "fileUrlPath": "packages/editor/src/lib/hooks/useEditor.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "useEditor", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!useIsCropping:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useIsCropping(shapeId: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/hooks/useIsCropping.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shapeId", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "useIsCropping" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!useIsDarkMode:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useIsDarkMode(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/hooks/useIsDarkMode.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useIsDarkMode" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!useIsEditing:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useIsEditing(shapeId: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/hooks/useIsEditing.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shapeId", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "useIsEditing" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!useSelectionEvents:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useSelectionEvents(handle: " + }, + { + "kind": "Reference", + "text": "TLSelectionHandle", + "canonicalReference": "@tldraw/editor!TLSelectionHandle:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{\n onPointerDown: import(\"react\")." + }, + { + "kind": "Reference", + "text": "PointerEventHandler", + "canonicalReference": "@types/react!React.PointerEventHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Element", + "canonicalReference": "!Element:interface" + }, + { + "kind": "Content", + "text": ">;\n onPointerMove: (e: " + }, + { + "kind": "Reference", + "text": "React.PointerEvent", + "canonicalReference": "@types/react!React.PointerEvent:interface" + }, + { + "kind": "Content", + "text": ") => void;\n onPointerUp: import(\"react\")." + }, + { + "kind": "Reference", + "text": "PointerEventHandler", + "canonicalReference": "@types/react!React.PointerEventHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Element", + "canonicalReference": "!Element:interface" + }, + { + "kind": "Content", + "text": ">;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/hooks/useSelectionEvents.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 14 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "handle", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "useSelectionEvents" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!useTLStore:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useTLStore(opts: " + }, + { + "kind": "Reference", + "text": "TLStoreOptions", + "canonicalReference": "@tldraw/editor!TLStoreOptions:type" + }, + { + "kind": "Content", + "text": " & {\n snapshot?: " + }, + { + "kind": "Reference", + "text": "StoreSnapshot", + "canonicalReference": "@tldraw/store!StoreSnapshot:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ">;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/tlschema\")." + }, + { + "kind": "Reference", + "text": "TLStore", + "canonicalReference": "@tldraw/tlschema!TLStore:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/hooks/useTLStore.ts", + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "opts", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + }, + "isOptional": false + } + ], + "name": "useTLStore" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/editor!useTransform:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useTransform(ref: " + }, + { + "kind": "Reference", + "text": "React.RefObject", + "canonicalReference": "@types/react!React.RefObject:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "HTMLElement", + "canonicalReference": "!HTMLElement:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", x?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", y?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", scale?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", rotate?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", additionalOffset?: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/hooks/useTransform.ts", + "returnTypeTokenRange": { + "startIndex": 18, + "endIndex": 19 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "ref", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "isOptional": true + }, + { + "parameterName": "y", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + }, + { + "parameterName": "scale", + "parameterTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "isOptional": true + }, + { + "parameterName": "rotate", + "parameterTypeTokenRange": { + "startIndex": 14, + "endIndex": 15 + }, + "isOptional": true + }, + { + "parameterName": "additionalOffset", + "parameterTypeTokenRange": { + "startIndex": 16, + "endIndex": 17 + }, + "isOptional": true + } + ], + "name": "useTransform" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/editor!Vec2d:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class Vec2d " + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/Vec2d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "Vec2d", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/editor!Vec2d:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Vec2d` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(x?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", y?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", z?: " + }, + { + "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": "z", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#abs:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "abs(): " + }, + { + "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": "abs" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Abs:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Abs(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "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": "Abs" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#add:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "add(V: " + }, + { + "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": "V", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "add" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Add:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Add(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": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Add" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#addScalar:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "addScalar(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": "addScalar" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.AddScalar:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static AddScalar(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", n: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "AddScalar" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#addXY:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "addXY(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": "addXY" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.AddXY:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static AddXY(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", x: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", y: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "A", + "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": "AddXY" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#angle:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "angle(B: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "B", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "angle" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Angle:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Angle(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": "number" + }, + { + "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": "Angle" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Average:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Average(arr: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "arr", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Average" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Cast:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Cast(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "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": "Cast" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#clamp:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "clamp(min: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", max?: " + }, + { + "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": "min", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "max", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "clamp" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Clamp:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Clamp(A: " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ", min: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", max?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "min", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "max", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Clamp" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Clockwise:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Clockwise(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": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "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": "C", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Clockwise" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#clone:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "clone(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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!Vec2d#cpr:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "cpr(V: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "V", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "cpr" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Cpr:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Cpr(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": "number" + }, + { + "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": "Cpr" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#cross:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "cross(V: " + }, + { + "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": "V", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "cross" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Cross:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Cross(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", V: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "V", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Cross" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#dist:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "dist(V: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "V", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "dist" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Dist:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Dist(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": "number" + }, + { + "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": "Dist" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Dist2:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Dist2(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": "number" + }, + { + "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": "Dist2" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#distanceToLineSegment:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "distanceToLineSegment(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": "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!Vec2d.DistanceToLineSegment:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static DistanceToLineSegment(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": ", P: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", clamp?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "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": "P", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "clamp", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "DistanceToLineSegment" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.DistanceToLineThroughPoint:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static DistanceToLineThroughPoint(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", u: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", P: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "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": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "u", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "P", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "DistanceToLineThroughPoint" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#div:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "div(t: " + }, + { + "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": "t", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "div" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Div:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Div(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", t: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "t", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Div" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#divV:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "divV(V: " + }, + { + "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": "V", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "divV" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.DivV:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static DivV(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": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "DivV" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#dpr:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "dpr(V: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "V", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "dpr" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Dpr:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Dpr(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": "number" + }, + { + "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": "Dpr" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#equals:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "equals(B: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike: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": "B", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "equals" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Equals:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Equals(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": "boolean" + }, + { + "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": "Equals" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#equalsXY:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "equalsXY(x: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", y: " + }, + { + "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": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "y", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "equalsXY" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.EqualsXY:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static EqualsXY(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", x: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", y: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "A", + "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": "EqualsXY" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.From:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static From({ x, y, z }: " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ x, y, z }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "From" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.FromAngle:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static FromAngle(r: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", length?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "r", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "length", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "FromAngle" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.FromArray:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static FromArray(v: " + }, + { + "kind": "Content", + "text": "number[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "v", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "FromArray" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#len:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "len(): " + }, + { + "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": "len" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Len:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Len(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike: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": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Len" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#len2:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "len2(): " + }, + { + "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": "len2" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Len2:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Len2(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike: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": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Len2" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#lrp:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "lrp(B: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", t: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "B", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "t", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "lrp" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Lrp:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Lrp(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": ", t: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "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": "t", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Lrp" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Max:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Max(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": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Max" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Med:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Med(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": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Med" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Min:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Min(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": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Min" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#mul:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "mul(t: " + }, + { + "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": "t", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "mul" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Mul:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Mul(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", t: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "t", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Mul" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#mulV:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "mulV(V: " + }, + { + "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": "V", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "mulV" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.MulV:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static MulV(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": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "MulV" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.NearestPointOnLineSegment:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static NearestPointOnLineSegment(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": ", P: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", clamp?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "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": "P", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "clamp", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "NearestPointOnLineSegment" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.NearestPointOnLineThroughPoint:member(1)", + "docComment": "/**\n * Get the nearest point on a line with a known unit vector that passes through point A\n * ```ts\n * Vec.nearestPointOnLineThroughPoint(A, u, Point)\n * ```\n *\n * @param A - Any point on the line\n *\n * @param u - The unit vector for the line.\n *\n * @param P - A point not on the line to test.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static NearestPointOnLineThroughPoint(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", u: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", P: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "u", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "P", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "NearestPointOnLineThroughPoint" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#neg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "neg(): " + }, + { + "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": "neg" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Neg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Neg(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "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": "Neg" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#norm:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "norm(): " + }, + { + "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": "norm" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#nudge:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "nudge(B: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", distance: " + }, + { + "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": "B", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "distance", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "nudge" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Nudge:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Nudge(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": ", distance: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "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": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Nudge" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#per:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "per(): " + }, + { + "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": "per" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Per:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Per(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "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": "Per" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.PointsBetween:member(1)", + "docComment": "/**\n * Get an array of points (with simulated pressure) between two points.\n *\n * @param A - The first point.\n *\n * @param B - The second point.\n *\n * @param steps - The number of points to return.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static PointsBetween(A: " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ", B: " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ", steps?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "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": "steps", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "PointsBetween" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Vec2d#pressure:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get pressure(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "pressure", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#pry:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "pry(V: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "V", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "pry" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Pry:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Pry(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": "number" + }, + { + "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": "Pry" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Rescale:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Rescale(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", n: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Rescale" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#rot:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "rot(r: " + }, + { + "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": "r", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "rot" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Rot:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Rot(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", r?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "r", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Rot" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#rotWith:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "rotWith(C: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", r: " + }, + { + "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": "C", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "r", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "rotWith" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.RotWith:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static RotWith(A: " + }, + { + "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": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "C", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "r", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "RotWith" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.ScaleWithOrigin:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static ScaleWithOrigin(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", scale: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", origin: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "scale", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "origin", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "ScaleWithOrigin" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#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": ", z?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "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": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + }, + { + "parameterName": "y", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "z", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "set" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#setTo:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTo({ x, y, z }: " + }, + { + "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": "{ x, y, z }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "setTo" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#slope:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "slope(B: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "B", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "slope" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Slope:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Slope(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": "number" + }, + { + "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": "Slope" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Snap:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Snap(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", step?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "step", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "Snap" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#snapToGrid:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "snapToGrid(gridSize: " + }, + { + "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": "gridSize", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "snapToGrid" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.SnapToGrid:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static SnapToGrid(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", gridSize?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "gridSize", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "SnapToGrid" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#sub:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "sub(V: " + }, + { + "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": "V", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "sub" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Sub:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Sub(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": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Sub" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#subScalar:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "subScalar(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": "subScalar" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.SubScalar:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static SubScalar(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", n: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "SubScalar" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#subXY:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "subXY(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": "subXY" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.SubXY:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static SubXY(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", x: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", y: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "A", + "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": "SubXY" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#tan:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tan(V: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "V", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "tan" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Tan:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Tan(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": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": "Tan" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#toAngle:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toAngle(): " + }, + { + "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": "toAngle" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.ToAngle:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static ToAngle(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike: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": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "ToAngle" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#toArray:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toArray(): " + }, + { + "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": "toArray" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.ToArray:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static ToArray(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike: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": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "ToArray" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#toFixed:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toFixed(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "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!Vec2d.ToFixed:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static ToFixed(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ", n?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d: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": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "ToFixed" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#toJson:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toJson(): " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel: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!Vec2d.ToJson:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static ToJson(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{\n x: number;\n y: number;\n z: number | undefined;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "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": "ToJson" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "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": "toString" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.ToString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static ToString(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike: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": "A", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "ToString" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d#uni:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "uni(): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "uni" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/editor!Vec2d.Uni:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Uni(A: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "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": "Uni" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/editor!Vec2d#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!Vec2d#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": "Property", + "canonicalReference": "@tldraw/editor!Vec2d#z:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "z: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "z", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/editor!VecLike:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type VecLike = " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/editor/src/lib/primitives/Vec2d.ts", + "releaseTag": "Public", + "name": "VecLike", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/editor!WeakMapCache:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class WeakMapCache " + } + ], + "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": [] + } + ] + } + ] +} diff --git a/packages/state/api/api.json b/packages/state/api/api.json new file mode 100644 index 000000000..b96df65c4 --- /dev/null +++ b/packages/state/api/api.json @@ -0,0 +1,3316 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.35.4", + "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/state!", + "docComment": "", + "name": "@tldraw/state", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@tldraw/state!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@tldraw/state!atom:function(1)", + "docComment": "/**\n * Creates a new [[Atom]].\n *\n * An Atom is a signal that can be updated directly by calling [[Atom.set]] or [[Atom.update]].\n *\n * @example\n * ```ts\n * const name = atom('name', 'John')\n *\n * name.value // 'John'\n *\n * name.set('Jane')\n *\n * name.value // 'Jane'\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function atom(\nname: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", \ninitialValue: " + }, + { + "kind": "Content", + "text": "Value" + }, + { + "kind": "Content", + "text": ", \noptions?: " + }, + { + "kind": "Reference", + "text": "AtomOptions", + "canonicalReference": "@tldraw/state!AtomOptions:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Atom", + "canonicalReference": "@tldraw/state!Atom:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/Atom.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "initialValue", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "isOptional": true + } + ], + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "atom" + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/state!Atom:interface", + "docComment": "/**\n * An Atom is a signal that can be updated directly by calling [[Atom.set]] or [[Atom.update]].\n *\n * Atoms are created using the [[atom]] function.\n *\n * @example\n * ```ts\n * const name = atom('name', 'John')\n *\n * print(name.value) // 'John'\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface Atom extends " + }, + { + "kind": "Reference", + "text": "Signal", + "canonicalReference": "@tldraw/state!Signal:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/state/src/lib/core/Atom.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "Atom", + "preserveMemberOrder": false, + "members": [ + { + "kind": "MethodSignature", + "canonicalReference": "@tldraw/state!Atom#set:member(1)", + "docComment": "/**\n * Sets the value of this atom to the given value. If the value is the same as the current value, this is a no-op.\n *\n * @param value - The new value to set.\n *\n * @param diff - The diff to use for the update. If not provided, the diff will be computed using [[AtomOptions.computeDiff]].\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "set(value: " + }, + { + "kind": "Content", + "text": "Value" + }, + { + "kind": "Content", + "text": ", diff?: " + }, + { + "kind": "Content", + "text": "Diff" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "Value" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "diff", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "name": "set" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@tldraw/state!Atom#update:member(1)", + "docComment": "/**\n * Updates the value of this atom using the given updater function. If the returned value is the same as the current value, this is a no-op.\n *\n * @param updater - A function that takes the current value and returns the new value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "update(updater: " + }, + { + "kind": "Content", + "text": "(value: Value) => Value" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "Value" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "updater", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "update" + } + ], + "extendsTokenRanges": [ + { + "startIndex": 3, + "endIndex": 5 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/state!AtomOptions:interface", + "docComment": "/**\n * The options to configure an atom, passed into the [[atom]] function.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface AtomOptions " + } + ], + "fileUrlPath": "packages/state/src/lib/core/Atom.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "AtomOptions", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!AtomOptions#computeDiff:member", + "docComment": "/**\n * A method used to compute a diff between the atom's old and new values. If provided, it will not be used unless you also specify [[AtomOptions.historyLength]].\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "computeDiff?: " + }, + { + "kind": "Reference", + "text": "ComputeDiff", + "canonicalReference": "@tldraw/state!~ComputeDiff:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "computeDiff", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!AtomOptions#historyLength:member", + "docComment": "/**\n * The maximum number of diffs to keep in the history buffer.\n *\n * If you don't need to compute diffs, or if you will supply diffs manually via [[Atom.set]], you can leave this as `undefined` and no history buffer will be created.\n *\n * If you expect the value to be part of an active effect subscription all the time, and to not change multiple times inside of a single transaction, you can set this to a relatively low number (e.g. 10).\n *\n * Otherwise, set this to a higher number based on your usage pattern and memory constraints.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "historyLength?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "historyLength", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!AtomOptions#isEqual:member", + "docComment": "/**\n * If provided, this will be used to compare the old and new values of the atom to determine if the value has changed. By default, values are compared using first using strict equality (`===`), then `Object.is`, and finally any `.equals` method present in the object's prototype chain.\n *\n * @param a - The old value\n *\n * @param b - The new value\n *\n * @returns \n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isEqual?: " + }, + { + "kind": "Content", + "text": "(a: any, b: any) => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "isEqual", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!computed:function(1)", + "docComment": "/**\n * Creates a computed signal.\n *\n * @param name - The name of the signal.\n *\n * @param compute - The function that computes the value of the signal.\n *\n * @param options - Options for the signal.\n *\n * @example\n * ```ts\n * const name = atom('name', 'John')\n * const greeting = computed('greeting', () => `Hello ${name.value}!`)\n * console.log(greeting.value) // 'Hello John!'\n * ```\n *\n * `computed` may also be used as a decorator for creating computed class properties.\n *\n * @example\n * ```ts\n * class Counter {\n * max = 100\n * count = atom(0)\n *\n * @computed get remaining() {\n * return this.max - this.count.value\n * }\n * }\n * ```\n *\n * You may optionally pass in a [[ComputedOptions]] when used as a decorator:\n *\n * @example\n * ```ts\n * class Counter {\n * max = 100\n * count = atom(0)\n *\n * @computed({isEqual: (a, b) => a === b})\n * get remaining() {\n * return this.max - this.count.value\n * }\n * }\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function computed(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", compute: " + }, + { + "kind": "Content", + "text": "(previousValue: typeof " + }, + { + "kind": "Reference", + "text": "UNINITIALIZED", + "canonicalReference": "@tldraw/state!~UNINITIALIZED:var" + }, + { + "kind": "Content", + "text": " | Value, lastComputedEpoch: number) => Value | " + }, + { + "kind": "Reference", + "text": "WithDiff", + "canonicalReference": "@tldraw/state!~WithDiff:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Reference", + "text": "ComputedOptions", + "canonicalReference": "@tldraw/state!ComputedOptions:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Computed", + "canonicalReference": "@tldraw/state!Computed:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/Computed.ts", + "returnTypeTokenRange": { + "startIndex": 14, + "endIndex": 16 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "compute", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 10 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 11, + "endIndex": 13 + }, + "isOptional": true + } + ], + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "computed" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!computed:function(2)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function computed(target: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", descriptor: " + }, + { + "kind": "Reference", + "text": "PropertyDescriptor", + "canonicalReference": "!PropertyDescriptor:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "PropertyDescriptor", + "canonicalReference": "!PropertyDescriptor:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/Computed.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "target", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "descriptor", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "computed" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!computed:function(3)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function computed(options?: " + }, + { + "kind": "Reference", + "text": "ComputedOptions", + "canonicalReference": "@tldraw/state!ComputedOptions:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "(target: any, key: string, descriptor: " + }, + { + "kind": "Reference", + "text": "PropertyDescriptor", + "canonicalReference": "!PropertyDescriptor:interface" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "PropertyDescriptor", + "canonicalReference": "!PropertyDescriptor:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/Computed.ts", + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "isOptional": true + } + ], + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "computed" + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/state!Computed:interface", + "docComment": "/**\n * A computed signal created via [[computed]].\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface Computed extends " + }, + { + "kind": "Reference", + "text": "Signal", + "canonicalReference": "@tldraw/state!Signal:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/state/src/lib/core/Computed.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "Computed", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!Computed#isActivelyListening:member", + "docComment": "/**\n * Whether this computed child is involved in an actively-running effect graph.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly isActivelyListening: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "isActivelyListening", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 3, + "endIndex": 5 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/state!ComputedOptions:interface", + "docComment": "/**\n * Options for creating computed signals. Used when calling [[computed]].\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ComputedOptions " + } + ], + "fileUrlPath": "packages/state/src/lib/core/Computed.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "ComputedOptions", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!ComputedOptions#computeDiff:member", + "docComment": "/**\n * A method used to compute a diff between the atom's old and new values. If provided, it will not be used unless you also specify [[AtomOptions.historyLength]].\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "computeDiff?: " + }, + { + "kind": "Reference", + "text": "ComputeDiff", + "canonicalReference": "@tldraw/state!~ComputeDiff:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "computeDiff", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!ComputedOptions#historyLength:member", + "docComment": "/**\n * The maximum number of diffs to keep in the history buffer.\n *\n * If you don't need to compute diffs, or if you will supply diffs manually via [[Atom.set]], you can leave this as `undefined` and no history buffer will be created.\n *\n * If you expect the value to be part of an active effect subscription all the time, and to not change multiple times inside of a single transaction, you can set this to a relatively low number (e.g. 10).\n *\n * Otherwise, set this to a higher number based on your usage pattern and memory constraints.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "historyLength?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "historyLength", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!ComputedOptions#isEqual:member", + "docComment": "/**\n * If provided, this will be used to compare the old and new values of the atom to determine if the value has changed. By default, values are compared using first using strict equality (`===`), then `Object.is`, and finally any `.equals` method present in the object's prototype chain.\n *\n * @param a - The old value\n *\n * @param b - The new value\n *\n * @returns \n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isEqual?: " + }, + { + "kind": "Content", + "text": "(a: any, b: any) => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "isEqual", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/state!EffectScheduler:class", + "docComment": "/**\n * An EffectScheduler is responsible for executing side effects in response to changes in state.\n *\n * You probably don't need to use this directly unless you're integrating this library with a framework of some kind.\n *\n * Instead, use the [[react]] and [[reactor]] functions.\n *\n * @example\n * ```ts\n * const render = new EffectScheduler('render', drawToCanvas)\n *\n * render.attach()\n * render.execute()\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class EffectScheduler " + } + ], + "fileUrlPath": "packages/state/src/lib/core/EffectScheduler.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Result", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "EffectScheduler", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/state!EffectScheduler:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `EffectScheduler` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", runEffect: " + }, + { + "kind": "Content", + "text": "(lastReactedEpoch: number) => Result" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Reference", + "text": "EffectSchedulerOptions", + "canonicalReference": "@tldraw/state!~EffectSchedulerOptions:interface" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "runEffect", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/state!EffectScheduler#attach:member(1)", + "docComment": "/**\n * Makes this scheduler become 'actively listening' to its parents. If it has been executed before it will immediately become eligible to receive 'maybeScheduleEffect' calls. If it has not executed before it will need to be manually executed once to become eligible for scheduling, i.e. by calling [[EffectScheduler.execute]].\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "attach(): " + }, + { + "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": "attach" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/state!EffectScheduler#detach:member(1)", + "docComment": "/**\n * Makes this scheduler stop 'actively listening' to its parents. It will no longer be eligible to receive 'maybeScheduleEffect' calls until [[EffectScheduler.attach]] is called again.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "detach(): " + }, + { + "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": "detach" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/state!EffectScheduler#execute:member(1)", + "docComment": "/**\n * Executes the effect immediately and returns the result.\n *\n * @returns The result of the effect.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "execute(): " + }, + { + "kind": "Content", + "text": "Result" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "execute" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/state!EffectScheduler#isActivelyListening:member", + "docComment": "/**\n * Whether this scheduler is attached and actively listening to its parents.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get isActivelyListening(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "isActivelyListening", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/state!EffectScheduler#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/state!EffectScheduler#scheduleCount:member", + "docComment": "/**\n * The number of times this effect has been scheduled.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get scheduleCount(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "scheduleCount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/state!EMPTY_ARRAY:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "EMPTY_ARRAY: " + }, + { + "kind": "Content", + "text": "[]" + } + ], + "fileUrlPath": "packages/state/src/lib/core/helpers.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "EMPTY_ARRAY", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!getComputedInstance:function(1)", + "docComment": "/**\n * Retrieves the underlying computed instance for a given property created with the [[computed]] decorator.\n *\n * @param obj - The object\n *\n * @param propertyName - The property name\n *\n * @example\n * ```ts\n * class Counter {\n * max = 100\n * count = atom(0)\n *\n * @computed get remaining() {\n * return this.max - this.count.value\n * }\n * }\n *\n * const c = new Counter()\n * const remaining = getComputedInstance(c, 'remaining')\n * remaining.value === 100 // true\n * c.count.set(13)\n * remaining.value === 87 // true\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getComputedInstance(obj: " + }, + { + "kind": "Content", + "text": "Obj" + }, + { + "kind": "Content", + "text": ", propertyName: " + }, + { + "kind": "Content", + "text": "Prop" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Computed", + "canonicalReference": "@tldraw/state!Computed:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/Computed.ts", + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 11 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "obj", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "propertyName", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Obj", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Prop", + "constraintTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "getComputedInstance" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!isAtom:function(1)", + "docComment": "/**\n * Returns true if the given value is an [[Atom]].\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isAtom(value: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "value", + "canonicalReference": "@tldraw/state!~value" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "Atom", + "canonicalReference": "@tldraw/state!Atom:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/Atom.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isAtom" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!isSignal:function(1)", + "docComment": "/**\n * Returns true if the given value is a signal (either an Atom or a Computed).\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isSignal(value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "value", + "canonicalReference": "@tldraw/state!~value" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "Signal", + "canonicalReference": "@tldraw/state!Signal:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/isSignal.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isSignal" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/state!isUninitialized:var", + "docComment": "/**\n * Call this inside a computed signal function to determine whether it is the first time the function is being called.\n *\n * Mainly useful for incremental signal computation.\n *\n * @param value - The value to check.\n *\n * @example\n * ```ts\n * const count = atom('count', 0)\n * const double = computed('double', (prevValue) => {\n * if (isUninitialized(prevValue)) {\n * print('First time!')\n * }\n * return count.value * 2\n * })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isUninitialized: " + }, + { + "kind": "Content", + "text": "(value: any) => " + }, + { + "kind": "Reference", + "text": "value", + "canonicalReference": "@tldraw/state!~value" + }, + { + "kind": "Content", + "text": " is typeof " + }, + { + "kind": "Reference", + "text": "UNINITIALIZED", + "canonicalReference": "@tldraw/state!~UNINITIALIZED:var" + } + ], + "fileUrlPath": "packages/state/src/lib/core/Computed.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "isUninitialized", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!react:function(1)", + "docComment": "/**\n * Starts a new effect scheduler, scheduling the effect immediately.\n *\n * Returns a function that can be called to stop the scheduler.\n *\n * @example\n * ```ts\n * const color = atom('color', 'red')\n * const stop = react('set style', () => {\n * divElem.style.color = color.value\n * })\n * color.set('blue')\n * // divElem.style.color === 'blue'\n * stop()\n * color.set('green')\n * // divElem.style.color === 'blue'\n * ```\n *\n * Also useful in React applications for running effects outside of the render cycle.\n *\n * @example\n * ```ts\n * useEffect(() => react('set style', () => {\n * divRef.current.style.color = color.value\n * }), [])\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function react(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", fn: " + }, + { + "kind": "Content", + "text": "(lastReactedEpoch: number) => any" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Reference", + "text": "EffectSchedulerOptions", + "canonicalReference": "@tldraw/state!~EffectSchedulerOptions:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/EffectScheduler.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "fn", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "react" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!reactor:function(1)", + "docComment": "/**\n * Creates a [[Reactor]], which is a thin wrapper around an [[EffectScheduler]].\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function reactor(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", fn: " + }, + { + "kind": "Content", + "text": "(lastReactedEpoch: number) => Result" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Reference", + "text": "EffectSchedulerOptions", + "canonicalReference": "@tldraw/state!~EffectSchedulerOptions:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Reactor", + "canonicalReference": "@tldraw/state!Reactor:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/EffectScheduler.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "fn", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "typeParameters": [ + { + "typeParameterName": "Result", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "reactor" + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/state!Reactor:interface", + "docComment": "/**\n * The reactor is a user-friendly interface for starting and stopping an [[EffectScheduler]].\n *\n * Calling .start() will attach the scheduler and execute the effect immediately the first time it is called.\n *\n * If the reactor is stopped, calling `.start()` will re-attach the scheduler but will only execute the effect if any of its parents have changed since it was stopped.\n *\n * You can create a reactor with [[reactor]].\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface Reactor " + } + ], + "fileUrlPath": "packages/state/src/lib/core/EffectScheduler.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "Reactor", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!Reactor#scheduler:member", + "docComment": "/**\n * The underlying effect scheduler.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scheduler: " + }, + { + "kind": "Reference", + "text": "EffectScheduler", + "canonicalReference": "@tldraw/state!EffectScheduler:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "scheduler", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "MethodSignature", + "canonicalReference": "@tldraw/state!Reactor#start:member(1)", + "docComment": "/**\n * Start the scheduler. The first time this is called the effect will be scheduled immediately.\n *\n * If the reactor is stopped, calling this will start the scheduler again but will only execute the effect if any of its parents have changed since it was stopped.\n *\n * If you need to force re-execution of the effect, pass `{ force: true }`.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "start(options?: " + }, + { + "kind": "Content", + "text": "{\n force?: boolean;\n }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ], + "name": "start" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@tldraw/state!Reactor#stop:member(1)", + "docComment": "/**\n * Stop the scheduler.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "stop(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "stop" + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/state!RESET_VALUE:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RESET_VALUE = " + }, + { + "kind": "Content", + "text": "typeof " + }, + { + "kind": "Reference", + "text": "RESET_VALUE", + "canonicalReference": "@tldraw/state!RESET_VALUE:var" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/types.ts", + "releaseTag": "Public", + "name": "RESET_VALUE", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/state!RESET_VALUE:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "RESET_VALUE: " + }, + { + "kind": "Content", + "text": "unique symbol" + } + ], + "fileUrlPath": "packages/state/src/lib/core/types.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "RESET_VALUE", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/state!Signal:interface", + "docComment": "/**\n * A Signal is a reactive value container. The value may change over time, and it may keep track of the diffs between sequential values.\n *\n * There are two types of signal:\n *\n * - Atomic signals, created using [[atom]]. These are mutable references to values that can be changed using [[Atom.set]]. - Computed signals, created using [[computed]]. These are values that are computed from other signals. They are recomputed lazily if their dependencies change.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface Signal " + } + ], + "fileUrlPath": "packages/state/src/lib/core/types.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "Signal", + "preserveMemberOrder": false, + "members": [ + { + "kind": "MethodSignature", + "canonicalReference": "@tldraw/state!Signal#__unsafe__getWithoutCapture:member(1)", + "docComment": "/**\n * Returns the current value of the signal without capturing it as a dependency. Use this if you need to retrieve the signal's value in a hot loop where the performance overhead of dependency tracking is too high.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "__unsafe__getWithoutCapture(): " + }, + { + "kind": "Content", + "text": "Value" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "__unsafe__getWithoutCapture" + }, + { + "kind": "MethodSignature", + "canonicalReference": "@tldraw/state!Signal#getDiffSince:member(1)", + "docComment": "/**\n * Returns the sequence of diffs between the the value at the given epoch and the current value. Returns the [[RESET_VALUE]] constant if there is not enough information to compute the diff sequence.\n *\n * @param epoch - The epoch to get diffs since.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDiffSince(epoch: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "Diff[] | " + }, + { + "kind": "Reference", + "text": "RESET_VALUE", + "canonicalReference": "@tldraw/state!RESET_VALUE:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isOptional": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "epoch", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "getDiffSince" + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!Signal#lastChangedEpoch:member", + "docComment": "/**\n * The epoch when this signal's value last changed. Note tha this is not the same as when the value was last computed. A signal may recopmute it's value without changing it.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "lastChangedEpoch: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "lastChangedEpoch", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!Signal#name:member", + "docComment": "/**\n * The name of the signal. This is used at runtime for debugging and perf profiling only. It does not need to be globally unique.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/state!Signal#value:member", + "docComment": "/**\n * The current value of the signal. This is a reactive value, and will update when the signal changes. Any computed signal that depends on this signal will be lazily recomputed if this signal changes. Any effect that depends on this signal will be rescheduled if this signal changes.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly value: " + }, + { + "kind": "Content", + "text": "Value" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!track:function(1)", + "docComment": "/**\n * Returns a tracked version of the given component. Any signals whose values are read while the component renders will be tracked. If any of the tracked signals change later it will cause the component to re-render.\n *\n * This also wraps the component in a React.memo() call, so it will only re-render if the props change.\n *\n * @param baseComponent - The base component to track.\n *\n * @example\n * ```ts\n * const Counter = track(function Counter(props: CounterProps) {\n * const count = useAtom('count', 0)\n * const increment = useCallback(() => count.set(count.value + 1), [count])\n * return \n * })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function track" + }, + { + "kind": "Content", + "text": ">(baseComponent: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T extends " + }, + { + "kind": "Reference", + "text": "React.MemoExoticComponent", + "canonicalReference": "@types/react!React.MemoExoticComponent:type" + }, + { + "kind": "Content", + "text": " ? T : " + }, + { + "kind": "Reference", + "text": "React.MemoExoticComponent", + "canonicalReference": "@types/react!React.MemoExoticComponent:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/react/track.ts", + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 11 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "baseComponent", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "track" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!transact:function(1)", + "docComment": "/**\n * Like [transaction](#transaction), but does not create a new transaction if there is already one in progress.\n *\n * @param fn - The function to run in a transaction.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function transact(fn: " + }, + { + "kind": "Content", + "text": "() => T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/transactions.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "fn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "transact" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!transaction:function(1)", + "docComment": "/**\n * Batches state updates, deferring side effects until after the transaction completes.\n *\n * @param fn - The function to run in a transaction, called with a function to roll back the change.\n *\n * @example\n * ```ts\n * const firstName = atom('John')\n * const lastName = atom('Doe')\n *\n * react('greet', () => {\n * print(`Hello, ${firstName.value} ${lastName.value}!`)\n * })\n *\n * // Logs \"Hello, John Doe!\"\n *\n * transaction(() => {\n * firstName.set('Jane')\n * lastName.set('Smith')\n * })\n *\n * // Logs \"Hello, Jane Smith!\"\n * ```\n *\n * If the function throws, the transaction is aborted and any signals that were updated during the transaction revert to their state before the transaction began.\n *\n * @example\n * ```ts\n * const firstName = atom('John')\n * const lastName = atom('Doe')\n *\n * react('greet', () => {\n * print(`Hello, ${firstName.value} ${lastName.value}!`)\n * })\n *\n * // Logs \"Hello, John Doe!\"\n *\n * transaction(() => {\n * firstName.set('Jane')\n * throw new Error('oops')\n * })\n *\n * // Does not log\n * // firstName.value === 'John'\n * ```\n *\n * A `rollback` callback is passed into the function. Calling this will prevent the transaction from committing and will revert any signals that were updated during the transaction to their state before the transaction began.\n *\n * *\n *\n * @example\n * ```ts\n * const firstName = atom('John')\n * const lastName = atom('Doe')\n *\n * react('greet', () => {\n * print(`Hello, ${firstName.value} ${lastName.value}!`)\n * })\n *\n * // Logs \"Hello, John Doe!\"\n *\n * transaction((rollback) => {\n * firstName.set('Jane')\n * lastName.set('Smith')\n * rollback()\n * })\n *\n * // Does not log\n * // firstName.value === 'John'\n * // lastName.value === 'Doe'\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function transaction(fn: " + }, + { + "kind": "Content", + "text": "(rollback: () => void) => T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/transactions.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "fn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "transaction" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!unsafe__withoutCapture:function(1)", + "docComment": "/**\n * Executes the given function without capturing any parents in the current capture context.\n *\n * This is mainly useful if you want to run an effect only when certain signals change while also dereferencing other signals which should not cause the effect to rerun on their own.\n *\n * @example\n * ```ts\n * const name = atom('name', 'Sam')\n * const time = atom('time', () => new Date().getTime())\n *\n * setInterval(() => {\n * time.set(new Date().getTime())\n * })\n *\n * react('log name changes', () => {\n * \t print(name.value, 'was changed at', unsafe__withoutCapture(() => time.value))\n * })\n *\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function unsafe__withoutCapture(fn: " + }, + { + "kind": "Content", + "text": "() => T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/capture.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "fn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "unsafe__withoutCapture" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!useAtom:function(1)", + "docComment": "/**\n * Creates a new atom and returns it. The atom will be created only once.\n *\n * See [[atom]]\n *\n * @example\n * ```ts\n * const Counter = track(function Counter () {\n * const count = useAtom('count', 0)\n * const increment = useCallback(() => count.set(count.value + 1), [count])\n * return \n * })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useAtom(\nname: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", \nvalueOrInitialiser: " + }, + { + "kind": "Content", + "text": "(() => Value) | Value" + }, + { + "kind": "Content", + "text": ", \noptions?: " + }, + { + "kind": "Reference", + "text": "AtomOptions", + "canonicalReference": "@tldraw/state!AtomOptions:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Atom", + "canonicalReference": "@tldraw/state!Atom:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/react/useAtom.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "valueOrInitialiser", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "isOptional": true + } + ], + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "useAtom" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!useComputed:function(1)", + "docComment": "/**\n * Creates a new computed signal and returns it. The computed signal will be created only once.\n *\n * See [[computed]]\n *\n * @example\n * ```ts\n * type GreeterProps = {\n * firstName: Signal\n * lastName: Signal\n * }\n *\n * const Greeter = track(function Greeter ({firstName, lastName}: GreeterProps) {\n * const fullName = useComputed('fullName', () => `${firstName.value} ${lastName.value}`)\n * return

Hello {fullName.value}!
\n * })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useComputed(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", compute: " + }, + { + "kind": "Content", + "text": "() => Value" + }, + { + "kind": "Content", + "text": ", deps: " + }, + { + "kind": "Content", + "text": "any[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Computed", + "canonicalReference": "@tldraw/state!Computed:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/react/useComputed.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "compute", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "deps", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "useComputed" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!useComputed:function(2)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useComputed(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", compute: " + }, + { + "kind": "Content", + "text": "() => Value" + }, + { + "kind": "Content", + "text": ", opts: " + }, + { + "kind": "Reference", + "text": "ComputedOptions", + "canonicalReference": "@tldraw/state!ComputedOptions:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", deps: " + }, + { + "kind": "Content", + "text": "any[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Computed", + "canonicalReference": "@tldraw/state!Computed:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/react/useComputed.ts", + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 14 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "compute", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "opts", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "deps", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "useComputed" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!useQuickReactor:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useQuickReactor(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", reactFn: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ", deps?: " + }, + { + "kind": "Content", + "text": "any[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/react/useQuickReactor.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "reactFn", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "deps", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "useQuickReactor" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!useReactor:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useReactor(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", reactFn: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ", deps?: " + }, + { + "kind": "Content", + "text": "any[] | undefined" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/react/useReactor.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "reactFn", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "deps", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "useReactor" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!useValue:function(1)", + "docComment": "/**\n * Extracts the value from a signal and subscribes to it.\n *\n * Note that you do not need to use this hook if you are wrapping the component with [[track]]\n *\n * @example\n * ```ts\n * const Counter: React.FC = () => {\n * const $count = useAtom('count', 0)\n * const increment = useCallback(() => $count.set($count.value + 1), [count])\n * const currentCount = useValue($count)\n * return \n * }\n * ```\n *\n * You can also pass a function to compute the value and it will be memoized as in [[useComputed]]:\n *\n * @example\n * ```ts\n * type GreeterProps = {\n * firstName: Signal\n * lastName: Signal\n * }\n *\n * const Greeter = track(function Greeter({ firstName, lastName }: GreeterProps) {\n * const fullName = useValue('fullName', () => `${firstName.value} ${lastName.value}`, [\n * firstName,\n * lastName,\n * ])\n * return
Hello {fullName}!
\n * })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useValue(value: " + }, + { + "kind": "Reference", + "text": "Signal", + "canonicalReference": "@tldraw/state!Signal:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "Value" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/react/useValue.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "useValue" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!useValue:function(2)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useValue(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", fn: " + }, + { + "kind": "Content", + "text": "() => Value" + }, + { + "kind": "Content", + "text": ", deps: " + }, + { + "kind": "Content", + "text": "unknown[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "Value" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/react/useValue.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "fn", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "deps", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "useValue" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!whyAmIRunning:function(1)", + "docComment": "/**\n * A debugging tool that tells you why a computed signal or effect is running. Call in the body of a computed signal or effect function.\n *\n * @example\n * ```ts\n * const name = atom('name', 'Bob')\n * react('greeting', () => {\n * \twhyAmIRunning()\n * \tprint('Hello', name.value)\n * })\n *\n * name.set('Alice')\n *\n * // 'greeting' is running because:\n * // 'name' changed => 'Alice'\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function whyAmIRunning(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/capture.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "whyAmIRunning" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/state!withDiff:function(1)", + "docComment": "/**\n * When writing incrementally-computed signals it is convenient (and usually more performant) to incrementally compute the diff too.\n *\n * You can use this function to wrap the return value of a computed signal function to indicate that the diff should be used instead of calculating a new one with [[AtomOptions.computeDiff]].\n *\n * @param value - The value.\n *\n * @param diff - The diff.\n *\n * @example\n * ```ts\n * const count = atom('count', 0)\n * const double = computed('double', (prevValue) => {\n * const nextValue = count.value * 2\n * if (isUninitialized(prevValue)) {\n * return nextValue\n * }\n * return withDiff(nextValue, nextValue - prevValue)\n * }, { historyLength: 10 })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function withDiff(value: " + }, + { + "kind": "Content", + "text": "Value" + }, + { + "kind": "Content", + "text": ", diff: " + }, + { + "kind": "Content", + "text": "Diff" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "WithDiff", + "canonicalReference": "@tldraw/state!~WithDiff:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/state/src/lib/core/Computed.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "diff", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Diff", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "withDiff" + } + ] + } + ] +} diff --git a/packages/store/api/api.json b/packages/store/api/api.json new file mode 100644 index 000000000..9b1afaf38 --- /dev/null +++ b/packages/store/api/api.json @@ -0,0 +1,5684 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.35.4", + "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/store!", + "docComment": "", + "name": "@tldraw/store", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@tldraw/store!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!AllRecords:type", + "docComment": "/**\n * Get the type of all records in a record store.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type AllRecords" + }, + { + "kind": "Content", + "text": "> = " + }, + { + "kind": "Reference", + "text": "ExtractR", + "canonicalReference": "@tldraw/store!~ExtractR:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ExtractRecordType", + "canonicalReference": "@tldraw/store!~ExtractRecordType:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/type-utils.ts", + "releaseTag": "Public", + "name": "AllRecords", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 4, + "endIndex": 8 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/store!assertIdType:function(1)", + "docComment": "/**\n * Assert whether an id correspond to a record type.\n *\n * @param id - The id to check.\n *\n * @param type - The type of the record.\n *\n * @example\n * ```ts\n * assertIdType(myId, \"shape\")\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function assertIdType(id: " + }, + { + "kind": "Content", + "text": "string | undefined" + }, + { + "kind": "Content", + "text": ", type: " + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "asserts " + }, + { + "kind": "Reference", + "text": "id", + "canonicalReference": "@tldraw/store!~id" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/RecordType.ts", + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 13 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "type", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "assertIdType" + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/store!BaseRecord:interface", + "docComment": "/**\n * The base record that all records must extend.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface BaseRecord" + }, + { + "kind": "Content", + "text": "> " + } + ], + "fileUrlPath": "packages/store/src/lib/BaseRecord.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "TypeName", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Id", + "constraintTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "BaseRecord", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/store!BaseRecord#id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly id: " + }, + { + "kind": "Content", + "text": "Id" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/store!BaseRecord#typeName:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly typeName: " + }, + { + "kind": "Content", + "text": "TypeName" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "typeName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!CollectionDiff:type", + "docComment": "/**\n * A diff describing the changes to a collection.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type CollectionDiff = " + }, + { + "kind": "Content", + "text": "{\n added?: " + }, + { + "kind": "Reference", + "text": "Set", + "canonicalReference": "!Set:interface" + }, + { + "kind": "Content", + "text": ";\n removed?: " + }, + { + "kind": "Reference", + "text": "Set", + "canonicalReference": "!Set:interface" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "name": "CollectionDiff", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/store!compareRecordVersions:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function compareRecordVersions(a: " + }, + { + "kind": "Reference", + "text": "RecordVersion", + "canonicalReference": "@tldraw/store!RecordVersion:type" + }, + { + "kind": "Content", + "text": ", b: " + }, + { + "kind": "Reference", + "text": "RecordVersion", + "canonicalReference": "@tldraw/store!RecordVersion:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "-1 | 0 | 1" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/migrate.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": "compareRecordVersions" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/store!compareSchemas:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "compareSchemas: " + }, + { + "kind": "Content", + "text": "(a: " + }, + { + "kind": "Reference", + "text": "SerializedSchema", + "canonicalReference": "@tldraw/store!SerializedSchema:interface" + }, + { + "kind": "Content", + "text": ", b: " + }, + { + "kind": "Reference", + "text": "SerializedSchema", + "canonicalReference": "@tldraw/store!SerializedSchema:interface" + }, + { + "kind": "Content", + "text": ") => -1 | 0 | 1" + } + ], + "fileUrlPath": "packages/store/src/lib/compareSchemas.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "compareSchemas", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!ComputedCache:type", + "docComment": "/**\n * A record store is a collection of records of different types.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type ComputedCache = " + }, + { + "kind": "Content", + "text": "{\n get(id: " + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": "): Data | undefined;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "name": "ComputedCache", + "typeParameters": [ + { + "typeParameterName": "Data", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/store!createRecordType:function(1)", + "docComment": "/**\n * Create a record type.\n *\n * @param typeName - The name of the type to create.\n *\n * @example\n * ```ts\n * const Book = createRecordType('book')\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function createRecordType(typeName: " + }, + { + "kind": "Content", + "text": "R['typeName']" + }, + { + "kind": "Content", + "text": ", config: " + }, + { + "kind": "Content", + "text": "{\n migrations?: " + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";\n validator?: " + }, + { + "kind": "Reference", + "text": "StoreValidator", + "canonicalReference": "@tldraw/store!StoreValidator:type" + }, + { + "kind": "Content", + "text": ";\n scope: " + }, + { + "kind": "Reference", + "text": "RecordScope", + "canonicalReference": "@tldraw/store!~RecordScope:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/RecordType.ts", + "returnTypeTokenRange": { + "startIndex": 13, + "endIndex": 17 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "typeName", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "config", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 12 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "createRecordType" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/store!defineMigrations:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function defineMigrations" + }, + { + "kind": "Content", + "text": " = " + }, + { + "kind": "Reference", + "text": "EMPTY_SYMBOL", + "canonicalReference": "@tldraw/store!~EMPTY_SYMBOL:type" + }, + { + "kind": "Content", + "text": ">(opts: " + }, + { + "kind": "Content", + "text": "{\n firstVersion?: CurrentVersion extends number ? FirstVersion : never;\n currentVersion?: CurrentVersion;\n migrators?: CurrentVersion extends number ? FirstVersion extends number ? CurrentVersion extends FirstVersion ? {\n [version in " + }, + { + "kind": "Reference", + "text": "Exclude", + "canonicalReference": "!Exclude:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Range", + "canonicalReference": "@tldraw/store!~Range_2:type" + }, + { + "kind": "Content", + "text": "<1, CurrentVersion>, 0>]: " + }, + { + "kind": "Reference", + "text": "Migration", + "canonicalReference": "@tldraw/store!Migration:type" + }, + { + "kind": "Content", + "text": ";\n } : {\n [version in " + }, + { + "kind": "Reference", + "text": "Exclude", + "canonicalReference": "!Exclude:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Range", + "canonicalReference": "@tldraw/store!~Range_2:type" + }, + { + "kind": "Content", + "text": ", FirstVersion>]: " + }, + { + "kind": "Reference", + "text": "Migration", + "canonicalReference": "@tldraw/store!Migration:type" + }, + { + "kind": "Content", + "text": ";\n } : {\n [version in " + }, + { + "kind": "Reference", + "text": "Exclude", + "canonicalReference": "!Exclude:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Range", + "canonicalReference": "@tldraw/store!~Range_2:type" + }, + { + "kind": "Content", + "text": "<1, CurrentVersion>, 0>]: " + }, + { + "kind": "Reference", + "text": "Migration", + "canonicalReference": "@tldraw/store!Migration:type" + }, + { + "kind": "Content", + "text": ";\n } : never;\n subTypeKey?: string;\n subTypeMigrations?: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/migrate.ts", + "returnTypeTokenRange": { + "startIndex": 37, + "endIndex": 38 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "opts", + "parameterTypeTokenRange": { + "startIndex": 13, + "endIndex": 36 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "FirstVersion", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + } + }, + { + "typeParameterName": "CurrentVersion", + "constraintTokenRange": { + "startIndex": 6, + "endIndex": 10 + }, + "defaultTypeTokenRange": { + "startIndex": 11, + "endIndex": 12 + } + } + ], + "name": "defineMigrations" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/store!devFreeze:function(1)", + "docComment": "/**\n * Freeze an object when in development mode. Copied from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze\n *\n * @param object - The object to freeze.\n *\n * @returns The frozen object when in development mode, or else the object when in other modes.\n *\n * @example\n * ```ts\n * const frozen = devFreeze({ a: 1 })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function devFreeze(object: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/devFreeze.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "object", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "devFreeze" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/store!getRecordVersion:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getRecordVersion(record: " + }, + { + "kind": "Reference", + "text": "UnknownRecord", + "canonicalReference": "@tldraw/store!UnknownRecord:type" + }, + { + "kind": "Content", + "text": ", serializedSchema: " + }, + { + "kind": "Reference", + "text": "SerializedSchema", + "canonicalReference": "@tldraw/store!SerializedSchema:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "RecordVersion", + "canonicalReference": "@tldraw/store!RecordVersion:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/migrate.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "record", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "serializedSchema", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "getRecordVersion" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!HistoryEntry:type", + "docComment": "/**\n * An entry containing changes that originated either by user actions or remote changes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type HistoryEntry = " + }, + { + "kind": "Content", + "text": "{\n changes: " + }, + { + "kind": "Reference", + "text": "RecordsDiff", + "canonicalReference": "@tldraw/store!RecordsDiff:type" + }, + { + "kind": "Content", + "text": ";\n source: " + }, + { + "kind": "Reference", + "text": "ChangeSource", + "canonicalReference": "@tldraw/store!~ChangeSource:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "name": "HistoryEntry", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeTokenRange": { + "startIndex": 5, + "endIndex": 10 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!IdOf:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type IdOf = " + }, + { + "kind": "Content", + "text": "R['id']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/BaseRecord.ts", + "releaseTag": "Public", + "name": "IdOf", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/store!migrate:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function migrate({ value, migrations, fromVersion, toVersion, }: " + }, + { + "kind": "Content", + "text": "{\n value: unknown;\n migrations: " + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";\n fromVersion: number;\n toVersion: number;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MigrationResult", + "canonicalReference": "@tldraw/store!MigrationResult:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/migrate.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ value, migrations, fromVersion, toVersion, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "migrate" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/store!migrateRecord:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function migrateRecord({ record, migrations, fromVersion, toVersion, }: " + }, + { + "kind": "Content", + "text": "{\n record: unknown;\n migrations: " + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";\n fromVersion: number;\n toVersion: number;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MigrationResult", + "canonicalReference": "@tldraw/store!MigrationResult:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/migrate.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ record, migrations, fromVersion, toVersion, }", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "migrateRecord" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!Migration:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type Migration = " + }, + { + "kind": "Content", + "text": "{\n up: (oldState: Before) => After;\n down: (newState: After) => Before;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/migrate.ts", + "releaseTag": "Public", + "name": "Migration", + "typeParameters": [ + { + "typeParameterName": "Before", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "typeParameterName": "After", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "kind": "Enum", + "canonicalReference": "@tldraw/store!MigrationFailureReason:enum", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum MigrationFailureReason " + } + ], + "fileUrlPath": "packages/store/src/lib/migrate.ts", + "releaseTag": "Public", + "name": "MigrationFailureReason", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@tldraw/store!MigrationFailureReason.IncompatibleSubtype:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "IncompatibleSubtype = " + }, + { + "kind": "Content", + "text": "\"incompatible-subtype\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "IncompatibleSubtype" + }, + { + "kind": "EnumMember", + "canonicalReference": "@tldraw/store!MigrationFailureReason.MigrationError:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MigrationError = " + }, + { + "kind": "Content", + "text": "\"migration-error\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MigrationError" + }, + { + "kind": "EnumMember", + "canonicalReference": "@tldraw/store!MigrationFailureReason.TargetVersionTooNew:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "TargetVersionTooNew = " + }, + { + "kind": "Content", + "text": "\"target-version-too-new\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "TargetVersionTooNew" + }, + { + "kind": "EnumMember", + "canonicalReference": "@tldraw/store!MigrationFailureReason.TargetVersionTooOld:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "TargetVersionTooOld = " + }, + { + "kind": "Content", + "text": "\"target-version-too-old\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "TargetVersionTooOld" + }, + { + "kind": "EnumMember", + "canonicalReference": "@tldraw/store!MigrationFailureReason.UnknownType:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "UnknownType = " + }, + { + "kind": "Content", + "text": "\"unknown-type\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "UnknownType" + }, + { + "kind": "EnumMember", + "canonicalReference": "@tldraw/store!MigrationFailureReason.UnrecognizedSubtype:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "UnrecognizedSubtype = " + }, + { + "kind": "Content", + "text": "\"unrecognized-subtype\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "UnrecognizedSubtype" + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!MigrationResult:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MigrationResult = " + }, + { + "kind": "Content", + "text": "{\n type: 'error';\n reason: " + }, + { + "kind": "Reference", + "text": "MigrationFailureReason", + "canonicalReference": "@tldraw/store!MigrationFailureReason:enum" + }, + { + "kind": "Content", + "text": ";\n} | {\n type: 'success';\n value: T;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/migrate.ts", + "releaseTag": "Public", + "name": "MigrationResult", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/store!Migrations:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface Migrations extends " + }, + { + "kind": "Reference", + "text": "BaseMigrationsInfo", + "canonicalReference": "@tldraw/store!~BaseMigrationsInfo:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/store/src/lib/migrate.ts", + "releaseTag": "Public", + "name": "Migrations", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/store!Migrations#subTypeKey:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "subTypeKey?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "subTypeKey", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/store!Migrations#subTypeMigrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "subTypeMigrations?: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "subTypeMigrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 2 + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!RecordId:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RecordId = " + }, + { + "kind": "Content", + "text": "string & {\n __type__: R;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/BaseRecord.ts", + "releaseTag": "Public", + "name": "RecordId", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!RecordsDiff:type", + "docComment": "/**\n * A diff describing the changes to a record.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RecordsDiff = " + }, + { + "kind": "Content", + "text": "{\n added: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": ", R>;\n updated: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": ", [from: R, to: R]>;\n removed: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": ", R>;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "name": "RecordsDiff", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 16 + } + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/store!RecordType:class", + "docComment": "/**\n * A record type is a type that can be stored in a record store. It is created with `createRecordType`.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class RecordType" + }, + { + "kind": "Content", + "text": "> " + } + ], + "fileUrlPath": "packages/store/src/lib/RecordType.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "RequiredProperties", + "constraintTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "RecordType", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/store!RecordType:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `RecordType` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(\n typeName: " + }, + { + "kind": "Content", + "text": "R['typeName']" + }, + { + "kind": "Content", + "text": ", config: " + }, + { + "kind": "Content", + "text": "{\n readonly createDefaultProperties: () => " + }, + { + "kind": "Reference", + "text": "Exclude", + "canonicalReference": "!Exclude:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "OmitMeta", + "canonicalReference": "@tldraw/store!~OmitMeta:type" + }, + { + "kind": "Content", + "text": ", RequiredProperties>;\n readonly migrations: " + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";\n readonly validator?: {\n validate: (r: unknown) => R;\n } | " + }, + { + "kind": "Reference", + "text": "StoreValidator", + "canonicalReference": "@tldraw/store!StoreValidator:type" + }, + { + "kind": "Content", + "text": ";\n readonly scope?: " + }, + { + "kind": "Reference", + "text": "RecordScope", + "canonicalReference": "@tldraw/store!~RecordScope:type" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "typeName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "config", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 14 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!RecordType#clone:member(1)", + "docComment": "/**\n * Clone a record of this type.\n *\n * @param record - The record to clone.\n *\n * @returns The cloned record.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clone(record: " + }, + { + "kind": "Content", + "text": "R" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "R" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "record", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "clone" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!RecordType#create:member(1)", + "docComment": "/**\n * Create a new record of this type.\n *\n * @param properties - The properties of the record.\n *\n * @returns The new record.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "create(properties: " + }, + { + "kind": "Reference", + "text": "Pick", + "canonicalReference": "!Pick:type" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "Omit", + "canonicalReference": "!Omit:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": ", RequiredProperties>" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "R" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "properties", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "create" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!RecordType#createCustomId:member(1)", + "docComment": "/**\n * Create a new ID for this record type based on the given ID.\n *\n * @deprecated\n *\n * - Use `createId` instead.\n *\n * @param id - The ID to base the new ID on.\n *\n * @returns The new ID.\n *\n * @example\n * ```ts\n * const id = recordType.createCustomId('myId')\n * ```\n *\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "createCustomId(id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "createCustomId" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!RecordType#createDefaultProperties:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly createDefaultProperties: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Exclude", + "canonicalReference": "!Exclude:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "OmitMeta", + "canonicalReference": "@tldraw/store!~OmitMeta:type" + }, + { + "kind": "Content", + "text": ", RequiredProperties>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "createDefaultProperties", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!RecordType#createId:member(1)", + "docComment": "/**\n * Create a new ID for this record type.\n *\n * @returns The new ID.\n *\n * @example\n * ```ts\n * const id = recordType.createId()\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "createId(customUniquePart?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "customUniquePart", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "createId" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!RecordType#isId:member(1)", + "docComment": "/**\n * Check whether an id is an id of this type.\n *\n * @param id - The id to check.\n *\n * @returns Whether the id is an id of this type.\n *\n * @example\n * ```ts\n * const result = recordType.isIn('someId')\n * ```\n *\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isId(id?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "id", + "canonicalReference": "@tldraw/store!~id" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isId" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!RecordType#isInstance:member", + "docComment": "/**\n * Check whether a record is an instance of this record type.\n *\n * @param record - The record to check.\n *\n * @returns Whether the record is an instance of this record type.\n *\n * @example\n * ```ts\n * const result = recordType.isInstance(someRecord)\n * ```\n *\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isInstance: " + }, + { + "kind": "Content", + "text": "(record?: " + }, + { + "kind": "Reference", + "text": "UnknownRecord", + "canonicalReference": "@tldraw/store!UnknownRecord:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "record", + "canonicalReference": "@tldraw/store!~record" + }, + { + "kind": "Content", + "text": " is R" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isInstance", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!RecordType#migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly migrations: " + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!RecordType#parseId:member(1)", + "docComment": "/**\n * Takes an id like `user:123` and returns the part after the colon `123`\n *\n * @param id - The id\n *\n * @returns \n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "parseId(id: " + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "parseId" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!RecordType#scope:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly scope: " + }, + { + "kind": "Reference", + "text": "RecordScope", + "canonicalReference": "@tldraw/store!~RecordScope:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "scope", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!RecordType#typeName:member", + "docComment": "/**\n * The unique type associated with this record.\n *\n * @public @readonly\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly typeName: " + }, + { + "kind": "Content", + "text": "R['typeName']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "typeName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!RecordType#validate:member(1)", + "docComment": "/**\n * Check that the passed in record passes the validations for this type. Returns its input correctly typed if it does, but throws an error otherwise.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "validate(record: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "R" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "record", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "validate" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!RecordType#validator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly validator: " + }, + { + "kind": "Content", + "text": "{\n validate: (r: unknown) => R;\n } | " + }, + { + "kind": "Reference", + "text": "StoreValidator", + "canonicalReference": "@tldraw/store!StoreValidator:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "validator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!RecordType#withDefaultProperties:member(1)", + "docComment": "/**\n * Create a new RecordType that has the same type name as this RecordType and includes the given default properties.\n *\n * @param fn - A function that returns the default properties of the new RecordType.\n *\n * @returns The new RecordType.\n *\n * @example\n * ```ts\n * const authorType = createRecordType('author', () => ({ living: true }))\n * const deadAuthorType = authorType.withDefaultProperties({ living: false })\n * ```\n *\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "withDefaultProperties, 'id' | 'typeName'>" + }, + { + "kind": "Content", + "text": ">(createDefaultProperties: " + }, + { + "kind": "Content", + "text": "() => DefaultProps" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "DefaultProps", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 12 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "createDefaultProperties", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "withDefaultProperties" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!RecordVersion:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RecordVersion = " + }, + { + "kind": "Content", + "text": "{\n rootVersion: number;\n subTypeVersion?: number;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/migrate.ts", + "releaseTag": "Public", + "name": "RecordVersion", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/store!reverseRecordsDiff:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function reverseRecordsDiff(diff: " + }, + { + "kind": "Reference", + "text": "RecordsDiff", + "canonicalReference": "@tldraw/store!RecordsDiff:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "RecordsDiff", + "canonicalReference": "@tldraw/store!RecordsDiff:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "diff", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "name": "reverseRecordsDiff" + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/store!SerializedSchema:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface SerializedSchema " + } + ], + "fileUrlPath": "packages/store/src/lib/StoreSchema.ts", + "releaseTag": "Public", + "name": "SerializedSchema", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/store!SerializedSchema#recordVersions:member", + "docComment": "/**\n * Record versions are the versions for each record type. e.g. adding a new field to a record\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "recordVersions: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": ";\n subTypeKey: string;\n } | {\n version: number;\n }>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "recordVersions", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/store!SerializedSchema#schemaVersion:member", + "docComment": "/**\n * Schema version is the version for this type you're looking at right now\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "schemaVersion: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "schemaVersion", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/store!SerializedSchema#storeVersion:member", + "docComment": "/**\n * Store version is the version for the structure of the store. e.g. higher level structure like removing or renaming a record type.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "storeVersion: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "storeVersion", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!SerializedStore:type", + "docComment": "/**\n * A serialized snapshot of the record store's values.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type SerializedStore = " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": ", R>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "name": "SerializedStore", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 7 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/store!squashRecordDiffs:function(1)", + "docComment": "/**\n * Squash a collection of diffs into a single diff.\n *\n * @param diffs - An array of diffs to squash.\n *\n * @returns A single diff that represents the squashed diffs.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function squashRecordDiffs(diffs: " + }, + { + "kind": "Reference", + "text": "RecordsDiff", + "canonicalReference": "@tldraw/store!RecordsDiff:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "RecordsDiff", + "canonicalReference": "@tldraw/store!RecordsDiff:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "diffs", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "squashRecordDiffs" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/store!Store:class", + "docComment": "/**\n * A store of records.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class Store " + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "typeParameterName": "Props", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "isAbstract": false, + "name": "Store", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@tldraw/store!Store#_flushHistory:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_flushHistory(): " + }, + { + "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": "_flushHistory" + }, + { + "kind": "Constructor", + "canonicalReference": "@tldraw/store!Store:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Store` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(config: " + }, + { + "kind": "Content", + "text": "{\n initialData?: " + }, + { + "kind": "Reference", + "text": "SerializedStore", + "canonicalReference": "@tldraw/store!SerializedStore:type" + }, + { + "kind": "Content", + "text": ";\n schema: " + }, + { + "kind": "Reference", + "text": "StoreSchema", + "canonicalReference": "@tldraw/store!StoreSchema:class" + }, + { + "kind": "Content", + "text": ";\n props: Props;\n }" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "config", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isOptional": false + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#allRecords:member", + "docComment": "/**\n * Get an array of all values in the store.\n *\n * @returns An array of all values in the store.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "allRecords: " + }, + { + "kind": "Content", + "text": "() => R[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "allRecords", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!Store#applyDiff:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "applyDiff(diff: " + }, + { + "kind": "Reference", + "text": "RecordsDiff", + "canonicalReference": "@tldraw/store!RecordsDiff:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", runCallbacks?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "diff", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + }, + { + "parameterName": "runCallbacks", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "applyDiff" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#clear:member", + "docComment": "/**\n * Removes all records from the store.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clear: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "clear", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#createComputedCache:member", + "docComment": "/**\n * Create a computed cache.\n *\n * @param name - The name of the derivation cache.\n *\n * @param derive - A function used to derive the value of the cache.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "createComputedCache: " + }, + { + "kind": "Content", + "text": "(name: string, derive: (record: V) => T | undefined, isEqual?: ((a: V, b: V) => boolean) | undefined) => " + }, + { + "kind": "Reference", + "text": "ComputedCache", + "canonicalReference": "@tldraw/store!ComputedCache:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "createComputedCache", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#createSelectedComputedCache:member", + "docComment": "/**\n * Create a computed cache from a selector\n *\n * @param name - The name of the derivation cache.\n *\n * @param selector - A function that returns a subset of the original shape\n *\n * @param derive - A function used to derive the value of the cache.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "createSelectedComputedCache: " + }, + { + "kind": "Content", + "text": "(name: string, selector: (record: V) => T | undefined, derive: (input: T) => J | undefined) => " + }, + { + "kind": "Reference", + "text": "ComputedCache", + "canonicalReference": "@tldraw/store!ComputedCache:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "createSelectedComputedCache", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!Store#extractingChanges:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "extractingChanges(fn: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "RecordsDiff", + "canonicalReference": "@tldraw/store!RecordsDiff:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "fn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "extractingChanges" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!Store#filterChangesByScope:member(1)", + "docComment": "/**\n * Filters out non-document changes from a diff. Returns null if there are no changes left.\n *\n * @param change - the records diff\n *\n * @returns \n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "filterChangesByScope(change: " + }, + { + "kind": "Reference", + "text": "RecordsDiff", + "canonicalReference": "@tldraw/store!RecordsDiff:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", scope: " + }, + { + "kind": "Reference", + "text": "RecordScope", + "canonicalReference": "@tldraw/store!~RecordScope:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{\n added: { [K in " + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": "]: R; };\n updated: { [K_1 in " + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": "]: [from: R, to: R]; };\n removed: { [K in " + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": "]: R; };\n } | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "change", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + }, + { + "parameterName": "scope", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "filterChangesByScope" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#get:member", + "docComment": "/**\n * Get the value of a store record by its id.\n *\n * @param id - The id of the record to get.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get: " + }, + { + "kind": "Content", + "text": ">(id: K) => " + }, + { + "kind": "Reference", + "text": "RecFromId", + "canonicalReference": "@tldraw/store!~RecFromId:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "get", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#getRecordType:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getRecordType: " + }, + { + "kind": "Content", + "text": "(record: R) => T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "getRecordType", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!Store#getSnapshot:member(1)", + "docComment": "/**\n * Get a serialized snapshot of the store and its schema.\n * ```ts\n * const snapshot = store.getSnapshot()\n * store.loadSnapshot(snapshot)\n * ```\n *\n * @param scope - The scope of records to serialize. Defaults to 'document'.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getSnapshot(scope?: " + }, + { + "kind": "Content", + "text": "'all' | " + }, + { + "kind": "Reference", + "text": "RecordScope", + "canonicalReference": "@tldraw/store!~RecordScope:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "StoreSnapshot", + "canonicalReference": "@tldraw/store!StoreSnapshot:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "scope", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getSnapshot" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#has:member", + "docComment": "/**\n * Get whether the record store has a id.\n *\n * @param id - The id of the record to check.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "has: " + }, + { + "kind": "Content", + "text": ">(id: K) => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "has", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#history:member", + "docComment": "/**\n * An atom containing the store's history.\n *\n * @public @readonly\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly history: " + }, + { + "kind": "Reference", + "text": "Atom", + "canonicalReference": "@tldraw/state!Atom:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "history", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#id:member", + "docComment": "/**\n * The random id of the store.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#listen:member", + "docComment": "/**\n * Add a new listener to the store.\n *\n * @param onHistory - The listener to call when the store updates.\n *\n * @param filters - Filters to apply to the listener.\n *\n * @returns A function to remove the listener.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "listen: " + }, + { + "kind": "Content", + "text": "(onHistory: " + }, + { + "kind": "Reference", + "text": "StoreListener", + "canonicalReference": "@tldraw/store!StoreListener:type" + }, + { + "kind": "Content", + "text": ", filters?: " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "StoreListenerFilters", + "canonicalReference": "@tldraw/store!~StoreListenerFilters:type" + }, + { + "kind": "Content", + "text": ">) => () => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "listen", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!Store#loadSnapshot:member(1)", + "docComment": "/**\n * Load a serialized snapshot.\n * ```ts\n * const snapshot = store.getSnapshot()\n * store.loadSnapshot(snapshot)\n * ```\n *\n * @param snapshot - The snapshot to load.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "loadSnapshot(snapshot: " + }, + { + "kind": "Reference", + "text": "StoreSnapshot", + "canonicalReference": "@tldraw/store!StoreSnapshot:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "snapshot", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "loadSnapshot" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#mergeRemoteChanges:member", + "docComment": "/**\n * Merge changes from a remote source without triggering listeners.\n *\n * @param fn - A function that merges the external changes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "mergeRemoteChanges: " + }, + { + "kind": "Content", + "text": "(fn: () => void) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "mergeRemoteChanges", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!Store#migrateSnapshot:member(1)", + "docComment": "/**\n * Migrate a serialized snapshot of the store and its schema.\n * ```ts\n * const snapshot = store.getSnapshot()\n * store.migrateSnapshot(snapshot)\n * ```\n *\n * @param snapshot - The snapshot to load.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "migrateSnapshot(snapshot: " + }, + { + "kind": "Reference", + "text": "StoreSnapshot", + "canonicalReference": "@tldraw/store!StoreSnapshot:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "StoreSnapshot", + "canonicalReference": "@tldraw/store!StoreSnapshot:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "snapshot", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "migrateSnapshot" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#onAfterChange:member", + "docComment": "/**\n * A callback fired after each record's change.\n *\n * @param prev - The previous value, if any.\n *\n * @param next - The next value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onAfterChange?: " + }, + { + "kind": "Content", + "text": "(prev: R, next: R, source: 'remote' | 'user') => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onAfterChange", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#onAfterCreate:member", + "docComment": "/**\n * A callback fired after a record is created. Use this to perform related updates to other records in the store.\n *\n * @param record - The record to be created\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onAfterCreate?: " + }, + { + "kind": "Content", + "text": "(record: R, source: 'remote' | 'user') => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onAfterCreate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#onAfterDelete:member", + "docComment": "/**\n * A callback fired after a record is deleted.\n *\n * @param prev - The record that will be deleted.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onAfterDelete?: " + }, + { + "kind": "Content", + "text": "(prev: R, source: 'remote' | 'user') => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onAfterDelete", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#onBeforeChange:member", + "docComment": "/**\n * A callback before after each record's change.\n *\n * @param prev - The previous value, if any.\n *\n * @param next - The next value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeChange?: " + }, + { + "kind": "Content", + "text": "(prev: R, next: R, source: 'remote' | 'user') => R" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onBeforeChange", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#onBeforeCreate:member", + "docComment": "/**\n * A callback fired after each record's change.\n *\n * @param prev - The previous value, if any.\n *\n * @param next - The next value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeCreate?: " + }, + { + "kind": "Content", + "text": "(next: R, source: 'remote' | 'user') => R" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onBeforeCreate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#onBeforeDelete:member", + "docComment": "/**\n * A callback fired before a record is deleted.\n *\n * @param prev - The record that will be deleted.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeDelete?: " + }, + { + "kind": "Content", + "text": "(prev: R, source: 'remote' | 'user') => false | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onBeforeDelete", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly props: " + }, + { + "kind": "Content", + "text": "Props" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#put:member", + "docComment": "/**\n * Add some records to the store. It's an error if they already exist.\n *\n * @param records - The records to add.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "put: " + }, + { + "kind": "Content", + "text": "(records: R[], phaseOverride?: 'initialize') => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "put", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#query:member", + "docComment": "/**\n * A StoreQueries instance for this store.\n *\n * @public @readonly\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly query: " + }, + { + "kind": "Reference", + "text": "StoreQueries", + "canonicalReference": "@tldraw/store!~StoreQueries:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "query", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#remove:member", + "docComment": "/**\n * Remove some records from the store via their ids.\n *\n * @param ids - The ids of the records to remove.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "remove: " + }, + { + "kind": "Content", + "text": "(ids: " + }, + { + "kind": "Reference", + "text": "IdOf", + "canonicalReference": "@tldraw/store!IdOf:type" + }, + { + "kind": "Content", + "text": "[]) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "remove", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#schema:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly schema: " + }, + { + "kind": "Reference", + "text": "StoreSchema", + "canonicalReference": "@tldraw/store!StoreSchema:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "schema", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#scopedTypes:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly scopedTypes: " + }, + { + "kind": "Content", + "text": "{\n readonly [K in " + }, + { + "kind": "Reference", + "text": "RecordScope", + "canonicalReference": "@tldraw/store!~RecordScope:type" + }, + { + "kind": "Content", + "text": "]: " + }, + { + "kind": "Reference", + "text": "ReadonlySet", + "canonicalReference": "!ReadonlySet:interface" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "scopedTypes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#serialize:member", + "docComment": "/**\n * Creates a JSON payload from the record store.\n *\n * @param scope - The scope of records to serialize. Defaults to 'document'.\n *\n * @returns The record store snapshot as a JSON payload.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "serialize: " + }, + { + "kind": "Content", + "text": "(scope?: 'all' | " + }, + { + "kind": "Reference", + "text": "RecordScope", + "canonicalReference": "@tldraw/store!~RecordScope:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "SerializedStore", + "canonicalReference": "@tldraw/store!SerializedStore:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "serialize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#unsafeGetWithoutCapture:member", + "docComment": "/**\n * Get the value of a store record by its id without updating its epoch.\n *\n * @param id - The id of the record to get.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "unsafeGetWithoutCapture: " + }, + { + "kind": "Content", + "text": ">(id: K) => " + }, + { + "kind": "Reference", + "text": "RecFromId", + "canonicalReference": "@tldraw/store!~RecFromId:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "unsafeGetWithoutCapture", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!Store#update:member", + "docComment": "/**\n * Update a record. To update multiple records at once, use the `update` method of the `TypedStore` class.\n *\n * @param id - The id of the record to update.\n *\n * @param updater - A function that updates the record.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "update: " + }, + { + "kind": "Content", + "text": ">(id: K, updater: (record: " + }, + { + "kind": "Reference", + "text": "RecFromId", + "canonicalReference": "@tldraw/store!~RecFromId:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "RecFromId", + "canonicalReference": "@tldraw/store!~RecFromId:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "update", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!Store#validate:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "validate(phase: " + }, + { + "kind": "Content", + "text": "'createRecord' | 'initialize' | 'tests' | 'updateRecord'" + }, + { + "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": "phase", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "validate" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!StoreError:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type StoreError = " + }, + { + "kind": "Content", + "text": "{\n error: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": ";\n phase: 'createRecord' | 'initialize' | 'tests' | 'updateRecord';\n recordBefore?: unknown;\n recordAfter: unknown;\n isExistingValidationIssue: boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "name": "StoreError", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!StoreListener:type", + "docComment": "/**\n * A function that will be called when the history changes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type StoreListener = " + }, + { + "kind": "Content", + "text": "(entry: " + }, + { + "kind": "Reference", + "text": "HistoryEntry", + "canonicalReference": "@tldraw/store!HistoryEntry:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "name": "StoreListener", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/store!StoreSchema:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class StoreSchema " + } + ], + "fileUrlPath": "packages/store/src/lib/StoreSchema.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "P", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "isAbstract": false, + "name": "StoreSchema", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@tldraw/store!StoreSchema.create:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static create(types: " + }, + { + "kind": "Content", + "text": "{\n [TypeName in R['typeName']]: {\n createId: any;\n };\n }" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Reference", + "text": "StoreSchemaOptions", + "canonicalReference": "@tldraw/store!StoreSchemaOptions:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "StoreSchema", + "canonicalReference": "@tldraw/store!StoreSchema:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "P", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 12 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "types", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "create" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!StoreSchema#currentStoreVersion:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "get currentStoreVersion(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "currentStoreVersion", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!StoreSchema#migratePersistedRecord:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "migratePersistedRecord(record: " + }, + { + "kind": "Content", + "text": "R" + }, + { + "kind": "Content", + "text": ", persistedSchema: " + }, + { + "kind": "Reference", + "text": "SerializedSchema", + "canonicalReference": "@tldraw/store!SerializedSchema:interface" + }, + { + "kind": "Content", + "text": ", direction?: " + }, + { + "kind": "Content", + "text": "'down' | 'up'" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MigrationResult", + "canonicalReference": "@tldraw/store!MigrationResult:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "record", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "persistedSchema", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "direction", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "migratePersistedRecord" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!StoreSchema#migrateStoreSnapshot:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "migrateStoreSnapshot(snapshot: " + }, + { + "kind": "Reference", + "text": "StoreSnapshot", + "canonicalReference": "@tldraw/store!StoreSnapshot:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MigrationResult", + "canonicalReference": "@tldraw/store!MigrationResult:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "SerializedStore", + "canonicalReference": "@tldraw/store!SerializedStore:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "snapshot", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "migrateStoreSnapshot" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!StoreSchema#serialize:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "serialize(): " + }, + { + "kind": "Reference", + "text": "SerializedSchema", + "canonicalReference": "@tldraw/store!SerializedSchema:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "serialize" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!StoreSchema#serializeEarliestVersion:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "serializeEarliestVersion(): " + }, + { + "kind": "Reference", + "text": "SerializedSchema", + "canonicalReference": "@tldraw/store!SerializedSchema:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "serializeEarliestVersion" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/store!StoreSchema#types:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly types: " + }, + { + "kind": "Content", + "text": "{\n [Record in R as Record['typeName']]: " + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "types", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/store!StoreSchema#validateRecord:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "validateRecord(store: " + }, + { + "kind": "Reference", + "text": "Store", + "canonicalReference": "@tldraw/store!Store:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", record: " + }, + { + "kind": "Content", + "text": "R" + }, + { + "kind": "Content", + "text": ", phase: " + }, + { + "kind": "Content", + "text": "'createRecord' | 'initialize' | 'tests' | 'updateRecord'" + }, + { + "kind": "Content", + "text": ", recordBefore: " + }, + { + "kind": "Content", + "text": "null | R" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "R" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "store", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + }, + { + "parameterName": "record", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "phase", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "recordBefore", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "validateRecord" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!StoreSchemaOptions:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type StoreSchemaOptions = " + }, + { + "kind": "Content", + "text": "{\n snapshotMigrations?: " + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";\n onValidationFailure?: (data: {\n error: unknown;\n store: " + }, + { + "kind": "Reference", + "text": "Store", + "canonicalReference": "@tldraw/store!Store:class" + }, + { + "kind": "Content", + "text": ";\n record: R;\n phase: 'createRecord' | 'initialize' | 'tests' | 'updateRecord';\n recordBefore: null | R;\n }) => R;\n createIntegrityChecker?: (store: " + }, + { + "kind": "Reference", + "text": "Store", + "canonicalReference": "@tldraw/store!Store:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/StoreSchema.ts", + "releaseTag": "Public", + "name": "StoreSchemaOptions", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "P", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 10 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!StoreSnapshot:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type StoreSnapshot = " + }, + { + "kind": "Content", + "text": "{\n store: " + }, + { + "kind": "Reference", + "text": "SerializedStore", + "canonicalReference": "@tldraw/store!SerializedStore:type" + }, + { + "kind": "Content", + "text": ";\n schema: " + }, + { + "kind": "Reference", + "text": "SerializedSchema", + "canonicalReference": "@tldraw/store!SerializedSchema:interface" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "name": "StoreSnapshot", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!StoreValidator:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type StoreValidator = " + }, + { + "kind": "Content", + "text": "{\n validate: (record: unknown) => R;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "name": "StoreValidator", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!StoreValidators:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type StoreValidators = " + }, + { + "kind": "Content", + "text": "{\n [K in R['typeName']]: " + }, + { + "kind": "Reference", + "text": "StoreValidator", + "canonicalReference": "@tldraw/store!StoreValidator:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Extract", + "canonicalReference": "!Extract:type" + }, + { + "kind": "Content", + "text": ">;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/Store.ts", + "releaseTag": "Public", + "name": "StoreValidators", + "typeParameters": [ + { + "typeParameterName": "R", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/store!UnknownRecord:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type UnknownRecord = " + }, + { + "kind": "Reference", + "text": "BaseRecord", + "canonicalReference": "@tldraw/store!BaseRecord:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/store/src/lib/BaseRecord.ts", + "releaseTag": "Public", + "name": "UnknownRecord", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + } + ] + } + ] +} diff --git a/packages/tldraw/api/api.json b/packages/tldraw/api/api.json new file mode 100644 index 000000000..7a27af809 --- /dev/null +++ b/packages/tldraw/api/api.json @@ -0,0 +1,18005 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.35.4", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@tldraw/tldraw!", + "docComment": "", + "name": "@tldraw/tldraw", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@tldraw/tldraw!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class ArrowShapeUtil extends " + }, + { + "kind": "Reference", + "text": "ShapeUtil", + "canonicalReference": "@tldraw/editor!ShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/arrow/ArrowShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "ArrowShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#canBind:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canBind: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canBind", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#canEdit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canEdit: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canEdit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#canSnap:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canSnap: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canSnap", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getCanvasSvgDefs:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getCanvasSvgDefs(): " + }, + { + "kind": "Reference", + "text": "TLShapeUtilCanvasSvgDef", + "canonicalReference": "@tldraw/editor!TLShapeUtilCanvasSvgDef:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getCanvasSvgDefs" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getGeometry:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getGeometry(shape: " + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Group2d", + "canonicalReference": "@tldraw/editor!Group2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getGeometry" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getHandles:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getHandles(shape: " + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "TLHandle", + "canonicalReference": "@tldraw/tlschema!TLHandle:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getHandles" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideResizeHandles:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideResizeHandles: " + }, + { + "kind": "Reference", + "text": "TLShapeUtilFlag", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideResizeHandles", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideRotateHandle:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideRotateHandle: " + }, + { + "kind": "Reference", + "text": "TLShapeUtilFlag", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideRotateHandle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideSelectionBoundsBg:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideSelectionBoundsBg: " + }, + { + "kind": "Reference", + "text": "TLShapeUtilFlag", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideSelectionBoundsBg", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideSelectionBoundsFg:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideSelectionBoundsFg: " + }, + { + "kind": "Reference", + "text": "TLShapeUtilFlag", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideSelectionBoundsFg", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onDoubleClickHandle:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onDoubleClickHandle: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ", handle: " + }, + { + "kind": "Reference", + "text": "TLHandle", + "canonicalReference": "@tldraw/tlschema!TLHandle:interface" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "TLShapePartial", + "canonicalReference": "@tldraw/tlschema!TLShapePartial:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": "> | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onDoubleClickHandle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 10 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onEditEnd:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onEditEnd: " + }, + { + "kind": "Reference", + "text": "TLOnEditEndHandler", + "canonicalReference": "@tldraw/editor!TLOnEditEndHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onEditEnd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onHandleChange:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onHandleChange: " + }, + { + "kind": "Reference", + "text": "TLOnHandleChangeHandler", + "canonicalReference": "@tldraw/editor!TLOnHandleChangeHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onHandleChange", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onResize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onResize: " + }, + { + "kind": "Reference", + "text": "TLOnResizeHandler", + "canonicalReference": "@tldraw/editor!TLOnResizeHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onResize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onTranslateStart:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onTranslateStart: " + }, + { + "kind": "Reference", + "text": "TLOnTranslateStartHandler", + "canonicalReference": "@tldraw/editor!TLOnTranslateStartHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onTranslateStart", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n labelColor: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n color: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n arrowheadStart: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">;\n arrowheadEnd: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">;\n font: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n start: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "UnionValidator", + "canonicalReference": "@tldraw/validate!UnionValidator:class" + }, + { + "kind": "Content", + "text": "<\"type\", {\n binding: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"binding\";\n boundShapeId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n normalizedAnchor: " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n isExact: boolean;\n }>;\n point: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"point\";\n x: number;\n y: number;\n }>;\n }, never>;\n end: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "UnionValidator", + "canonicalReference": "@tldraw/validate!UnionValidator:class" + }, + { + "kind": "Content", + "text": "<\"type\", {\n binding: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"binding\";\n boundShapeId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n normalizedAnchor: " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n isExact: boolean;\n }>;\n point: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"point\";\n x: number;\n y: number;\n }>;\n }, never>;\n bend: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n text: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 42 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#toSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": ", ctx: " + }, + { + "kind": "Reference", + "text": "SvgExportContext", + "canonicalReference": "@tldraw/editor!SvgExportContext:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SVGGElement", + "canonicalReference": "!SVGGElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "ctx", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"arrow\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class BookmarkShapeUtil extends " + }, + { + "kind": "Reference", + "text": "BaseBoxShapeUtil", + "canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLBookmarkShape", + "canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/bookmark/BookmarkShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "BookmarkShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#canResize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canResize: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canResize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLBookmarkShape", + "canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLBookmarkShape", + "canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#hideSelectionBoundsFg:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideSelectionBoundsFg: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideSelectionBoundsFg", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLBookmarkShape", + "canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#onBeforeCreate:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeCreate?: " + }, + { + "kind": "Reference", + "text": "TLOnBeforeCreateHandler", + "canonicalReference": "@tldraw/editor!TLOnBeforeCreateHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLBookmarkShape", + "canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onBeforeCreate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#onBeforeUpdate:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeUpdate?: " + }, + { + "kind": "Reference", + "text": "TLOnBeforeUpdateHandler", + "canonicalReference": "@tldraw/editor!TLOnBeforeUpdateHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLBookmarkShape", + "canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onBeforeUpdate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n w: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n assetId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n url: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"bookmark\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!BreakPointProvider:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function BreakPointProvider({ children }: " + }, + { + "kind": "Content", + "text": "{\n children: any;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/hooks/useBreakpoint.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ children }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "BreakPointProvider" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!Button:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Button: " + }, + { + "kind": "Reference", + "text": "React.ForwardRefExoticComponent", + "canonicalReference": "@types/react!React.ForwardRefExoticComponent:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiButtonProps", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "React.RefAttributes", + "canonicalReference": "@types/react!React.RefAttributes:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "HTMLButtonElement", + "canonicalReference": "!HTMLButtonElement:interface" + }, + { + "kind": "Content", + "text": ">>" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Button.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "Button", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 9 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!compactMenuItems:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function compactMenuItems(arr: " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Exclude", + "canonicalReference": "!Exclude:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "arr", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "compactMenuItems" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!containBoxSize:function(1)", + "docComment": "/**\n * Contains the size within the given box size\n *\n * @param originalSize - The size of the asset\n *\n * @param containBoxSize - The container size\n *\n * @returns Adjusted size\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function containBoxSize(originalSize: " + }, + { + "kind": "Reference", + "text": "BoxWidthHeight", + "canonicalReference": "@tldraw/tldraw!~BoxWidthHeight:type" + }, + { + "kind": "Content", + "text": ", containBoxSize: " + }, + { + "kind": "Reference", + "text": "BoxWidthHeight", + "canonicalReference": "@tldraw/tldraw!~BoxWidthHeight:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "BoxWidthHeight", + "canonicalReference": "@tldraw/tldraw!~BoxWidthHeight:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/assets.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "originalSize", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "containBoxSize", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "containBoxSize" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!ContextMenu:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ContextMenu: " + }, + { + "kind": "Content", + "text": "({ children }: {\n children: any;\n}) => " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/ContextMenu.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "ContextMenu", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!DEFAULT_ACCEPTED_IMG_TYPE:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DEFAULT_ACCEPTED_IMG_TYPE: " + }, + { + "kind": "Content", + "text": "string[]" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/assets.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DEFAULT_ACCEPTED_IMG_TYPE", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!DEFAULT_ACCEPTED_VID_TYPE:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DEFAULT_ACCEPTED_VID_TYPE: " + }, + { + "kind": "Content", + "text": "string[]" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/assets.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DEFAULT_ACCEPTED_VID_TYPE", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!defaultShapeTools:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "defaultShapeTools: " + }, + { + "kind": "Content", + "text": "(typeof " + }, + { + "kind": "Reference", + "text": "ArrowShapeTool", + "canonicalReference": "@tldraw/tldraw!~ArrowShapeTool:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "DrawShapeTool", + "canonicalReference": "@tldraw/tldraw!~DrawShapeTool:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "FrameShapeTool", + "canonicalReference": "@tldraw/tldraw!~FrameShapeTool:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "GeoShapeTool", + "canonicalReference": "@tldraw/tldraw!~GeoShapeTool:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "LineShapeTool", + "canonicalReference": "@tldraw/tldraw!~LineShapeTool:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "NoteShapeTool", + "canonicalReference": "@tldraw/tldraw!~NoteShapeTool:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "TextShapeTool", + "canonicalReference": "@tldraw/tldraw!~TextShapeTool:class" + }, + { + "kind": "Content", + "text": ")[]" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/defaultShapeTools.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "defaultShapeTools", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 16 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!defaultShapeUtils:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "defaultShapeUtils: " + }, + { + "kind": "Reference", + "text": "TLAnyShapeUtilConstructor", + "canonicalReference": "@tldraw/editor!TLAnyShapeUtilConstructor:type" + }, + { + "kind": "Content", + "text": "[]" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/defaultShapeUtils.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "defaultShapeUtils", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!defaultTools:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "defaultTools: " + }, + { + "kind": "Content", + "text": "(typeof " + }, + { + "kind": "Reference", + "text": "EraserTool", + "canonicalReference": "@tldraw/tldraw!EraserTool:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "HandTool", + "canonicalReference": "@tldraw/tldraw!HandTool:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "LaserTool", + "canonicalReference": "@tldraw/tldraw!LaserTool:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "SelectTool", + "canonicalReference": "@tldraw/tldraw!SelectTool:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "ZoomTool", + "canonicalReference": "@tldraw/tldraw!ZoomTool:class" + }, + { + "kind": "Content", + "text": ")[]" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/defaultTools.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "defaultTools", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "Namespace", + "canonicalReference": "@tldraw/tldraw!Dialog:namespace", + "docComment": "", + "excerptTokens": [], + "fileUrlPath": "packages/tldraw/src/index.ts", + "releaseTag": "None", + "name": "Dialog", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!Dialog.Body:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Body({ className, children, style, }: " + }, + { + "kind": "Content", + "text": "{\n className?: string;\n children: any;\n style?: " + }, + { + "kind": "Reference", + "text": "React.CSSProperties", + "canonicalReference": "@types/react!React.CSSProperties:interface" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Dialog.tsx", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ className, children, style, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "Body" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!Dialog.CloseButton:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function CloseButton(): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Dialog.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "CloseButton" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!Dialog.Footer:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Footer({ className, children }: " + }, + { + "kind": "Content", + "text": "{\n className?: string;\n children: any;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Dialog.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ className, children }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Footer" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!Dialog.Header:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Header({ className, children }: " + }, + { + "kind": "Content", + "text": "{\n className?: string;\n children: any;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/components/primitives/Dialog.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ className, children }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Header" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!Dialog.Title:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Title({ className, children }: " + }, + { + "kind": "Content", + "text": "{\n className?: string;\n children: any;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Dialog.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ className, children }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Title" + } + ] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class DrawShapeUtil extends " + }, + { + "kind": "Reference", + "text": "ShapeUtil", + "canonicalReference": "@tldraw/editor!ShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/draw/DrawShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "DrawShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#expandSelectionOutlinePx:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "expandSelectionOutlinePx(shape: " + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "expandSelectionOutlinePx" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#getCanvasSvgDefs:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getCanvasSvgDefs(): " + }, + { + "kind": "Reference", + "text": "TLShapeUtilCanvasSvgDef", + "canonicalReference": "@tldraw/editor!TLShapeUtilCanvasSvgDef:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getCanvasSvgDefs" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#getGeometry:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getGeometry(shape: " + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Circle2d", + "canonicalReference": "@tldraw/editor!Circle2d:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Polyline2d", + "canonicalReference": "@tldraw/editor!Polyline2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getGeometry" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#hideResizeHandles:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideResizeHandles: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": ") => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideResizeHandles", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#hideRotateHandle:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideRotateHandle: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": ") => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideRotateHandle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#hideSelectionBoundsFg:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideSelectionBoundsFg: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": ") => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideSelectionBoundsFg", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#onResize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onResize: " + }, + { + "kind": "Reference", + "text": "TLOnResizeHandler", + "canonicalReference": "@tldraw/editor!TLOnResizeHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onResize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n color: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n segments: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "ArrayOfValidator", + "canonicalReference": "@tldraw/validate!ArrayOfValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"free\" | \"straight\";\n points: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": "[];\n }>;\n isComplete: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n isClosed: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n isPen: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 20 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#toSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": ", ctx: " + }, + { + "kind": "Reference", + "text": "SvgExportContext", + "canonicalReference": "@tldraw/editor!SvgExportContext:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SVGGElement", + "canonicalReference": "!SVGGElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "ctx", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!DrawShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"draw\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Namespace", + "canonicalReference": "@tldraw/tldraw!DropdownMenu:namespace", + "docComment": "", + "excerptTokens": [], + "fileUrlPath": "packages/tldraw/src/index.ts", + "releaseTag": "None", + "name": "DropdownMenu", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.CheckboxItem:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function CheckboxItem({ children, onSelect, ...rest }: " + }, + { + "kind": "Reference", + "text": "DropdownMenuCheckboxItemProps", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuCheckboxItemProps:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ children, onSelect, ...rest }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "CheckboxItem" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.Content:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Content({ side, align, sideOffset, alignOffset, children, }: " + }, + { + "kind": "Content", + "text": "{\n children: any;\n alignOffset?: number;\n sideOffset?: number;\n align?: 'center' | 'end' | 'start';\n side?: 'bottom' | 'left' | 'right' | 'top';\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ side, align, sideOffset, alignOffset, children, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Content" + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuCheckboxItemProps:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface DropdownMenuCheckboxItemProps " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "releaseTag": "Public", + "name": "DropdownMenuCheckboxItemProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuCheckboxItemProps#checked:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "checked?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "checked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuCheckboxItemProps#children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "children: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuCheckboxItemProps#disabled:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "disabled?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "disabled", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuCheckboxItemProps#onSelect:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onSelect?: " + }, + { + "kind": "Content", + "text": "(e: " + }, + { + "kind": "Reference", + "text": "Event", + "canonicalReference": "!Event:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onSelect", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuCheckboxItemProps#title:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "title: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "title", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuItemProps:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface DropdownMenuItemProps extends " + }, + { + "kind": "Reference", + "text": "TLUiButtonProps", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "releaseTag": "Public", + "name": "DropdownMenuItemProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuItemProps#noClose:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "noClose?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "noClose", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 2 + } + ] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.Group:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Group({ children, size, }: " + }, + { + "kind": "Content", + "text": "{\n children: any;\n size?: 'medium' | 'small' | 'tiny' | 'wide';\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ children, size, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Group" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.Indicator:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Indicator(): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "Indicator" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.Item:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Item({ noClose, ...props }: " + }, + { + "kind": "Reference", + "text": "DropdownMenuItemProps", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuItemProps:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ noClose, ...props }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Item" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.RadioItem:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function RadioItem({ children, onSelect, ...rest }: " + }, + { + "kind": "Reference", + "text": "DropdownMenuCheckboxItemProps", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.DropdownMenuCheckboxItemProps:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ children, onSelect, ...rest }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "RadioItem" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.Root:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Root({ id, children, modal, }: " + }, + { + "kind": "Content", + "text": "{\n id: string;\n children: any;\n modal?: boolean;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ id, children, modal, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Root" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.Sub:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Sub({ id, children }: " + }, + { + "kind": "Content", + "text": "{\n id: string;\n children: any;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ id, children }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Sub" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.SubContent:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function SubContent({ alignOffset, sideOffset, children, }: " + }, + { + "kind": "Content", + "text": "{\n alignOffset?: number;\n sideOffset?: number;\n children: any;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ alignOffset, sideOffset, children, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "SubContent" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.SubTrigger:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function SubTrigger({ label, 'data-testid': testId, 'data-direction': dataDirection, }: " + }, + { + "kind": "Content", + "text": "{\n label: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ";\n 'data-testid'?: string;\n 'data-direction'?: 'left' | 'right';\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ label, 'data-testid': testId, 'data-direction': dataDirection, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "SubTrigger" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!DropdownMenu.Trigger:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Trigger({ children, 'data-testid': testId, }: " + }, + { + "kind": "Content", + "text": "{\n children: any;\n 'data-testid'?: string;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/DropdownMenu.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ children, 'data-testid': testId, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Trigger" + } + ] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class EmbedShapeUtil extends " + }, + { + "kind": "Reference", + "text": "BaseBoxShapeUtil", + "canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/embed/EmbedShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "EmbedShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canEdit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canEdit: " + }, + { + "kind": "Reference", + "text": "TLShapeUtilFlag", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canEdit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canEditInReadOnly:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canEditInReadOnly: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canEditInReadOnly", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canResize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canResize: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": ") => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canResize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canUnmount:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canUnmount: " + }, + { + "kind": "Reference", + "text": "TLShapeUtilFlag", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canUnmount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#hideSelectionBoundsFg:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideSelectionBoundsFg: " + }, + { + "kind": "Reference", + "text": "TLShapeUtilFlag", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideSelectionBoundsFg", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#isAspectRatioLocked:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isAspectRatioLocked: " + }, + { + "kind": "Reference", + "text": "TLShapeUtilFlag", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isAspectRatioLocked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#onResize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onResize: " + }, + { + "kind": "Reference", + "text": "TLOnResizeHandler", + "canonicalReference": "@tldraw/editor!TLOnResizeHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onResize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n w: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n url: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"embed\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!EraserTool:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class EraserTool extends " + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/tools/EraserTool/EraserTool.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "EraserTool", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EraserTool.children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static children: " + }, + { + "kind": "Content", + "text": "() => (typeof " + }, + { + "kind": "Reference", + "text": "Erasing", + "canonicalReference": "@tldraw/tldraw!~Erasing:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Idle", + "canonicalReference": "@tldraw/tldraw!~Idle_7:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Pointing", + "canonicalReference": "@tldraw/tldraw!~Pointing_6:class" + }, + { + "kind": "Content", + "text": ")[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EraserTool.id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EraserTool.initial:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static initial: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "initial", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!EraserTool#onEnter:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onEnter: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onEnter", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!EventsProviderProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type EventsProviderProps = " + }, + { + "kind": "Content", + "text": "{\n onEvent?: " + }, + { + "kind": "Reference", + "text": "TLUiEventHandler", + "canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type" + }, + { + "kind": "Content", + "text": ";\n children: any;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useEventsProvider.tsx", + "releaseTag": "Public", + "name": "EventsProviderProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!findMenuItem:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function findMenuItem(menu: " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchema", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type" + }, + { + "kind": "Content", + "text": ", path: " + }, + { + "kind": "Content", + "text": "string[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "TLUiMenuChild", + "canonicalReference": "@tldraw/tldraw!TLUiMenuChild:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "menu", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "findMenuItem" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class FrameShapeUtil extends " + }, + { + "kind": "Reference", + "text": "BaseBoxShapeUtil", + "canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/frame/FrameShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "FrameShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canBind:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canBind: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canBind", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canDropShapes:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canDropShapes: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": ", _shapes: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": "[]) => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canDropShapes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canEdit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canEdit: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canEdit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canReceiveNewChildrenOfType:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canReceiveNewChildrenOfType: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": ", _type: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": "['type']) => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canReceiveNewChildrenOfType", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#getGeometry:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getGeometry(shape: " + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Geometry2d", + "canonicalReference": "@tldraw/editor!Geometry2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getGeometry" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onDragShapesOut:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onDragShapesOut: " + }, + { + "kind": "Content", + "text": "(_shape: " + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": ", shapes: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": "[]) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onDragShapesOut", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onDragShapesOver:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onDragShapesOver: " + }, + { + "kind": "Content", + "text": "(frame: " + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": ", shapes: " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": "[]) => {\n shouldHint: boolean;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onDragShapesOver", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onResizeEnd:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onResizeEnd: " + }, + { + "kind": "Reference", + "text": "TLOnResizeEndHandler", + "canonicalReference": "@tldraw/editor!TLOnResizeEndHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onResizeEnd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n w: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n name: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#providesBackgroundForChildren:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "providesBackgroundForChildren(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "providesBackgroundForChildren" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#toSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": "> | " + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!FrameShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"frame\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class GeoShapeUtil extends " + }, + { + "kind": "Reference", + "text": "BaseBoxShapeUtil", + "canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/geo/GeoShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "GeoShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#canEdit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canEdit: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canEdit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getCanvasSvgDefs:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getCanvasSvgDefs(): " + }, + { + "kind": "Reference", + "text": "TLShapeUtilCanvasSvgDef", + "canonicalReference": "@tldraw/editor!TLShapeUtilCanvasSvgDef:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getCanvasSvgDefs" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getGeometry:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getGeometry(shape: " + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Geometry2d", + "canonicalReference": "@tldraw/editor!Geometry2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getGeometry" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onBeforeCreate:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeCreate: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": ") => {\n props: {\n growY: number;\n geo: \"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"check-box\" | \"cloud\" | \"diamond\" | \"ellipse\" | \"hexagon\" | \"octagon\" | \"oval\" | \"pentagon\" | \"rectangle\" | \"rhombus-2\" | \"rhombus\" | \"star\" | \"trapezoid\" | \"triangle\" | \"x-box\";\n labelColor: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n fill: \"none\" | \"pattern\" | \"semi\" | \"solid\";\n dash: \"dashed\" | \"dotted\" | \"draw\" | \"solid\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n verticalAlign: \"end\" | \"middle\" | \"start\";\n url: string;\n w: number;\n h: number;\n text: string;\n };\n type: \"geo\";\n x: number;\n y: number;\n rotation: number;\n index: string;\n parentId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLParentId", + "canonicalReference": "@tldraw/tlschema!TLParentId:type" + }, + { + "kind": "Content", + "text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";\n id: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n typeName: \"shape\";\n } | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onBeforeCreate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 10 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onBeforeUpdate:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeUpdate: " + }, + { + "kind": "Content", + "text": "(prev: " + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": ", next: " + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": ") => {\n props: {\n growY: number;\n geo: \"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"check-box\" | \"cloud\" | \"diamond\" | \"ellipse\" | \"hexagon\" | \"octagon\" | \"oval\" | \"pentagon\" | \"rectangle\" | \"rhombus-2\" | \"rhombus\" | \"star\" | \"trapezoid\" | \"triangle\" | \"x-box\";\n labelColor: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n fill: \"none\" | \"pattern\" | \"semi\" | \"solid\";\n dash: \"dashed\" | \"dotted\" | \"draw\" | \"solid\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n verticalAlign: \"end\" | \"middle\" | \"start\";\n url: string;\n w: number;\n h: number;\n text: string;\n };\n type: \"geo\";\n x: number;\n y: number;\n rotation: number;\n index: string;\n parentId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLParentId", + "canonicalReference": "@tldraw/tlschema!TLParentId:type" + }, + { + "kind": "Content", + "text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";\n id: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n typeName: \"shape\";\n } | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onBeforeUpdate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onDoubleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onDoubleClick: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": ") => {\n props: {\n geo: \"check-box\";\n };\n type: \"geo\";\n x: number;\n y: number;\n rotation: number;\n index: string;\n parentId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLParentId", + "canonicalReference": "@tldraw/tlschema!TLParentId:type" + }, + { + "kind": "Content", + "text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";\n id: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n typeName: \"shape\";\n } | {\n props: {\n geo: \"rectangle\";\n };\n type: \"geo\";\n x: number;\n y: number;\n rotation: number;\n index: string;\n parentId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLParentId", + "canonicalReference": "@tldraw/tlschema!TLParentId:type" + }, + { + "kind": "Content", + "text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";\n id: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n typeName: \"shape\";\n } | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onDoubleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 16 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onEditEnd:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onEditEnd: " + }, + { + "kind": "Reference", + "text": "TLOnEditEndHandler", + "canonicalReference": "@tldraw/editor!TLOnEditEndHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onEditEnd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onResize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onResize: " + }, + { + "kind": "Reference", + "text": "TLOnResizeHandler", + "canonicalReference": "@tldraw/editor!TLOnResizeHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onResize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n geo: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"check-box\" | \"cloud\" | \"diamond\" | \"ellipse\" | \"hexagon\" | \"octagon\" | \"oval\" | \"pentagon\" | \"rectangle\" | \"rhombus-2\" | \"rhombus\" | \"star\" | \"trapezoid\" | \"triangle\" | \"x-box\">;\n labelColor: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n color: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n verticalAlign: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end\" | \"middle\" | \"start\">;\n url: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n w: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n growY: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n text: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 30 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#toSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": ", ctx: " + }, + { + "kind": "Reference", + "text": "SvgExportContext", + "canonicalReference": "@tldraw/editor!SvgExportContext:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SVGElement", + "canonicalReference": "!SVGElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "ctx", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!GeoShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"geo\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!getEmbedInfo:function(1)", + "docComment": "/**\n * Tests whether an URL supports embedding and returns the result. If we encounter an error, we return undefined.\n *\n * @param inputUrl - The URL to match\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getEmbedInfo(inputUrl: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "TLEmbedResult", + "canonicalReference": "@tldraw/tldraw!~TLEmbedResult:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/embeds.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "inputUrl", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "getEmbedInfo" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!getResizedImageDataUrl:function(1)", + "docComment": "/**\n * Get the size of an image from its source.\n *\n * @param dataURLForImage - The image file as a string.\n *\n * @param width - The desired width.\n *\n * @param height - The desired height.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getResizedImageDataUrl(dataURLForImage: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", width: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", height: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/assets.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "dataURLForImage", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "width", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "height", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "getResizedImageDataUrl" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!HandTool:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class HandTool extends " + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/tools/HandTool/HandTool.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "HandTool", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HandTool.children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static children: " + }, + { + "kind": "Content", + "text": "() => (typeof " + }, + { + "kind": "Reference", + "text": "Dragging", + "canonicalReference": "@tldraw/tldraw!~Dragging:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Idle", + "canonicalReference": "@tldraw/tldraw!~Idle_8:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Pointing", + "canonicalReference": "@tldraw/tldraw!~Pointing_7:class" + }, + { + "kind": "Content", + "text": ")[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HandTool.id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HandTool.initial:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static initial: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "initial", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HandTool#onDoubleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onDoubleClick: " + }, + { + "kind": "Reference", + "text": "TLClickEvent", + "canonicalReference": "@tldraw/editor!TLClickEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onDoubleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HandTool#onQuadrupleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onQuadrupleClick: " + }, + { + "kind": "Reference", + "text": "TLClickEvent", + "canonicalReference": "@tldraw/editor!TLClickEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onQuadrupleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HandTool#onTripleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onTripleClick: " + }, + { + "kind": "Reference", + "text": "TLClickEvent", + "canonicalReference": "@tldraw/editor!TLClickEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onTripleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class HighlightShapeUtil extends " + }, + { + "kind": "Reference", + "text": "ShapeUtil", + "canonicalReference": "@tldraw/editor!ShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/highlight/HighlightShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "HighlightShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#backgroundComponent:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "backgroundComponent(shape: " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "backgroundComponent" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#getGeometry:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getGeometry(shape: " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Circle2d", + "canonicalReference": "@tldraw/editor!Circle2d:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Polygon2d", + "canonicalReference": "@tldraw/editor!Polygon2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getGeometry" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#hideResizeHandles:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideResizeHandles: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": ") => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideResizeHandles", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#hideRotateHandle:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideRotateHandle: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": ") => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideRotateHandle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#hideSelectionBoundsFg:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideSelectionBoundsFg: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": ") => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideSelectionBoundsFg", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#onResize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onResize: " + }, + { + "kind": "Reference", + "text": "TLOnResizeHandler", + "canonicalReference": "@tldraw/editor!TLOnResizeHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onResize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n color: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n segments: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "ArrayOfValidator", + "canonicalReference": "@tldraw/validate!ArrayOfValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"free\" | \"straight\";\n points: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": "[];\n }>;\n isComplete: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n isPen: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 14 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#toBackgroundSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toBackgroundSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SVGPathElement", + "canonicalReference": "!SVGPathElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toBackgroundSvg" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#toSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SVGPathElement", + "canonicalReference": "!SVGPathElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"highlight\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!Icon:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Icon: " + }, + { + "kind": "Content", + "text": "import(\"react\")." + }, + { + "kind": "Reference", + "text": "NamedExoticComponent", + "canonicalReference": "@types/react!React.NamedExoticComponent:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiIconProps", + "canonicalReference": "@tldraw/tldraw!TLUiIconProps:interface" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Icon.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "Icon", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class ImageShapeUtil extends " + }, + { + "kind": "Reference", + "text": "BaseBoxShapeUtil", + "canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLImageShape", + "canonicalReference": "@tldraw/tlschema!TLImageShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/image/ImageShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "ImageShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#canCrop:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canCrop: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canCrop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLImageShape", + "canonicalReference": "@tldraw/tlschema!TLImageShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLImageShape", + "canonicalReference": "@tldraw/tlschema!TLImageShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLImageShape", + "canonicalReference": "@tldraw/tlschema!TLImageShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#isAspectRatioLocked:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isAspectRatioLocked: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isAspectRatioLocked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#onDoubleClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onDoubleClick: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLImageShape", + "canonicalReference": "@tldraw/tlschema!TLImageShape:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onDoubleClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#onDoubleClickEdge:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onDoubleClickEdge: " + }, + { + "kind": "Reference", + "text": "TLOnDoubleClickHandler", + "canonicalReference": "@tldraw/editor!TLOnDoubleClickHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLImageShape", + "canonicalReference": "@tldraw/tlschema!TLImageShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onDoubleClickEdge", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n w: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n playing: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n url: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n assetId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n crop: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<{\n topLeft: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n bottomRight: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n } | null>;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 20 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#toSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLImageShape", + "canonicalReference": "@tldraw/tlschema!TLImageShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "SVGGElement", + "canonicalReference": "!SVGGElement:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ImageShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"image\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!Input:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Input: " + }, + { + "kind": "Reference", + "text": "React.ForwardRefExoticComponent", + "canonicalReference": "@types/react!React.ForwardRefExoticComponent:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiInputProps", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "React.RefAttributes", + "canonicalReference": "@types/react!React.RefAttributes:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "HTMLInputElement", + "canonicalReference": "!HTMLInputElement:interface" + }, + { + "kind": "Content", + "text": ">>" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Input.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "Input", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 9 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!isGifAnimated:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isGifAnimated(file: " + }, + { + "kind": "Reference", + "text": "File", + "canonicalReference": "!File:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/assets.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "file", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isGifAnimated" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!LaserTool:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class LaserTool extends " + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/tools/LaserTool/LaserTool.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "LaserTool", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LaserTool.children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static children: " + }, + { + "kind": "Content", + "text": "() => (typeof " + }, + { + "kind": "Reference", + "text": "Idle", + "canonicalReference": "@tldraw/tldraw!~Idle_9:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Lasering", + "canonicalReference": "@tldraw/tldraw!~Lasering:class" + }, + { + "kind": "Content", + "text": ")[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LaserTool.id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LaserTool.initial:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static initial: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "initial", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LaserTool#onEnter:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onEnter: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onEnter", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class LineShapeUtil extends " + }, + { + "kind": "Reference", + "text": "ShapeUtil", + "canonicalReference": "@tldraw/editor!ShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/line/LineShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "LineShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#getGeometry:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getGeometry(shape: " + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "CubicSpline2d", + "canonicalReference": "@tldraw/editor!CubicSpline2d:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Polyline2d", + "canonicalReference": "@tldraw/editor!Polyline2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getGeometry" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#getHandles:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getHandles(shape: " + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "TLHandle", + "canonicalReference": "@tldraw/tlschema!TLHandle:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getHandles" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#getOutlineSegments:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getOutlineSegments(shape: " + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Vec2d", + "canonicalReference": "@tldraw/editor!Vec2d:class" + }, + { + "kind": "Content", + "text": "[][]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getOutlineSegments" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideResizeHandles:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideResizeHandles: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideResizeHandles", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideRotateHandle:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideRotateHandle: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideRotateHandle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideSelectionBoundsBg:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideSelectionBoundsBg: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideSelectionBoundsBg", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideSelectionBoundsFg:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideSelectionBoundsFg: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideSelectionBoundsFg", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#onHandleChange:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onHandleChange: " + }, + { + "kind": "Reference", + "text": "TLOnHandleChangeHandler", + "canonicalReference": "@tldraw/editor!TLOnHandleChangeHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onHandleChange", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#onResize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onResize: " + }, + { + "kind": "Reference", + "text": "TLOnResizeHandler", + "canonicalReference": "@tldraw/editor!TLOnResizeHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onResize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n color: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n dash: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n spline: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"cubic\" | \"line\">;\n handles: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "DictValidator", + "canonicalReference": "@tldraw/validate!DictValidator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 14 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil#toSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SVGGElement", + "canonicalReference": "!SVGGElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!LineShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"line\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!menuCustom:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function menuCustom(id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", opts?: " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<{\n readonlyOk: boolean;\n disabled: boolean;\n}>" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{\n id: string;\n type: \"custom\";\n disabled: boolean;\n readonlyOk: boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "opts", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "isOptional": true + } + ], + "name": "menuCustom" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!menuGroup:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function menuGroup(id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", ...children: " + }, + { + "kind": "Content", + "text": "(false | null | " + }, + { + "kind": "Reference", + "text": "TLUiMenuChild", + "canonicalReference": "@tldraw/tldraw!TLUiMenuChild:type" + }, + { + "kind": "Content", + "text": ")[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLUiMenuGroup", + "canonicalReference": "@tldraw/tldraw!TLUiMenuGroup:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "children", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "menuGroup" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!menuItem:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function menuItem(actionItem: " + }, + { + "kind": "Reference", + "text": "TLUiActionItem", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLUiToolItem", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface" + }, + { + "kind": "Content", + "text": ", opts?: " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<{\n checked: boolean;\n disabled: boolean;\n}>" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "TLUiMenuItem", + "canonicalReference": "@tldraw/tldraw!TLUiMenuItem:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "actionItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "opts", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "isOptional": true + } + ], + "name": "menuItem" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!menuSubmenu:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function menuSubmenu(id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", label: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ", ...children: " + }, + { + "kind": "Content", + "text": "(false | null | " + }, + { + "kind": "Reference", + "text": "TLUiMenuChild", + "canonicalReference": "@tldraw/tldraw!TLUiMenuChild:type" + }, + { + "kind": "Content", + "text": ")[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLUiSubMenu", + "canonicalReference": "@tldraw/tldraw!TLUiSubMenu:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 11 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "label", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "children", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 8 + }, + "isOptional": false + } + ], + "name": "menuSubmenu" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class NoteShapeUtil extends " + }, + { + "kind": "Reference", + "text": "ShapeUtil", + "canonicalReference": "@tldraw/editor!ShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/note/NoteShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "NoteShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#canEdit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canEdit: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canEdit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#getGeometry:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getGeometry(shape: " + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Rectangle2d", + "canonicalReference": "@tldraw/editor!Rectangle2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getGeometry" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#getHeight:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getHeight(shape: " + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getHeight" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#hideResizeHandles:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideResizeHandles: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideResizeHandles", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#hideSelectionBoundsFg:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideSelectionBoundsFg: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hideSelectionBoundsFg", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#onBeforeCreate:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeCreate: " + }, + { + "kind": "Content", + "text": "(next: " + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": ") => {\n props: {\n growY: number;\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n verticalAlign: \"end\" | \"middle\" | \"start\";\n url: string;\n text: string;\n };\n type: \"note\";\n x: number;\n y: number;\n rotation: number;\n index: string;\n parentId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLParentId", + "canonicalReference": "@tldraw/tlschema!TLParentId:type" + }, + { + "kind": "Content", + "text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";\n id: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n typeName: \"shape\";\n } | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onBeforeCreate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 10 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#onBeforeUpdate:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeUpdate: " + }, + { + "kind": "Content", + "text": "(prev: " + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": ", next: " + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": ") => {\n props: {\n growY: number;\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n verticalAlign: \"end\" | \"middle\" | \"start\";\n url: string;\n text: string;\n };\n type: \"note\";\n x: number;\n y: number;\n rotation: number;\n index: string;\n parentId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLParentId", + "canonicalReference": "@tldraw/tlschema!TLParentId:type" + }, + { + "kind": "Content", + "text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";\n id: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n typeName: \"shape\";\n } | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onBeforeUpdate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#onEditEnd:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onEditEnd: " + }, + { + "kind": "Reference", + "text": "TLOnEditEndHandler", + "canonicalReference": "@tldraw/editor!TLOnEditEndHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onEditEnd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n color: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n verticalAlign: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end\" | \"middle\" | \"start\">;\n growY: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n url: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n text: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 18 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#toSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": ", ctx: " + }, + { + "kind": "Reference", + "text": "SvgExportContext", + "canonicalReference": "@tldraw/editor!SvgExportContext:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SVGGElement", + "canonicalReference": "!SVGGElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "ctx", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!NoteShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"note\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!parseTldrawJsonFile:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function parseTldrawJsonFile({ json, schema, }: " + }, + { + "kind": "Content", + "text": "{\n schema: " + }, + { + "kind": "Reference", + "text": "TLSchema", + "canonicalReference": "@tldraw/tlschema!TLSchema:type" + }, + { + "kind": "Content", + "text": ";\n json: string;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Result", + "canonicalReference": "@tldraw/utils!Result:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLStore", + "canonicalReference": "@tldraw/tlschema!TLStore:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TldrawFileParseError", + "canonicalReference": "@tldraw/tldraw!~TldrawFileParseError:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/file.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 11 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ json, schema, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "parseTldrawJsonFile" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!SelectTool:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class SelectTool extends " + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/tools/SelectTool/SelectTool.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "SelectTool", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!SelectTool.children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static children: " + }, + { + "kind": "Content", + "text": "() => (typeof " + }, + { + "kind": "Reference", + "text": "Brushing", + "canonicalReference": "@tldraw/tldraw!~Brushing:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Crop", + "canonicalReference": "@tldraw/tldraw!~Crop:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Cropping", + "canonicalReference": "@tldraw/tldraw!~Cropping:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "DraggingHandle", + "canonicalReference": "@tldraw/tldraw!~DraggingHandle:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "EditingShape", + "canonicalReference": "@tldraw/tldraw!~EditingShape:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Idle", + "canonicalReference": "@tldraw/tldraw!~Idle_11:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "PointingCanvas", + "canonicalReference": "@tldraw/tldraw!~PointingCanvas:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "PointingCropHandle", + "canonicalReference": "@tldraw/tldraw!~PointingCropHandle:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "PointingHandle", + "canonicalReference": "@tldraw/tldraw!~PointingHandle:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "PointingResizeHandle", + "canonicalReference": "@tldraw/tldraw!~PointingResizeHandle:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "PointingRotateHandle", + "canonicalReference": "@tldraw/tldraw!~PointingRotateHandle:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "PointingSelection", + "canonicalReference": "@tldraw/tldraw!~PointingSelection:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "PointingShape", + "canonicalReference": "@tldraw/tldraw!~PointingShape:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Resizing", + "canonicalReference": "@tldraw/tldraw!~Resizing:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Rotating", + "canonicalReference": "@tldraw/tldraw!~Rotating:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "ScribbleBrushing", + "canonicalReference": "@tldraw/tldraw!~ScribbleBrushing:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Translating", + "canonicalReference": "@tldraw/tldraw!~Translating:class" + }, + { + "kind": "Content", + "text": ")[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 36 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!SelectTool.id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!SelectTool.initial:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static initial: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "initial", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!SelectTool#onExit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onExit: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onExit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!serializeTldrawJson:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function serializeTldrawJson(store: " + }, + { + "kind": "Reference", + "text": "TLStore", + "canonicalReference": "@tldraw/tlschema!TLStore:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/file.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "store", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "serializeTldrawJson" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!serializeTldrawJsonBlob:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function serializeTldrawJsonBlob(store: " + }, + { + "kind": "Reference", + "text": "TLStore", + "canonicalReference": "@tldraw/tlschema!TLStore:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Blob", + "canonicalReference": "!Blob:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/file.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "store", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "serializeTldrawJsonBlob" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!setDefaultEditorAssetUrls:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function setDefaultEditorAssetUrls(assetUrls: " + }, + { + "kind": "Reference", + "text": "TLEditorAssetUrls", + "canonicalReference": "@tldraw/tldraw!~TLEditorAssetUrls:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/assetUrls.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "assetUrls", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "setDefaultEditorAssetUrls" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class TextShapeUtil extends " + }, + { + "kind": "Reference", + "text": "ShapeUtil", + "canonicalReference": "@tldraw/editor!ShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/text/TextShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "TextShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#canEdit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canEdit: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canEdit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#getGeometry:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getGeometry(shape: " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Rectangle2d", + "canonicalReference": "@tldraw/editor!Rectangle2d:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getGeometry" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#getMinDimensions:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getMinDimensions(shape: " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{\n height: number;\n width: number;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getMinDimensions" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#isAspectRatioLocked:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isAspectRatioLocked: " + }, + { + "kind": "Reference", + "text": "TLShapeUtilFlag", + "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isAspectRatioLocked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#onBeforeCreate:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeCreate: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": ") => {\n x: number;\n y: number;\n type: \"text\";\n rotation: number;\n index: string;\n parentId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLParentId", + "canonicalReference": "@tldraw/tlschema!TLParentId:type" + }, + { + "kind": "Content", + "text": ";\n isLocked: boolean;\n opacity: number;\n props: {\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n w: number;\n text: string;\n scale: number;\n autoSize: boolean;\n };\n meta: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";\n id: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n typeName: \"shape\";\n } | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onBeforeCreate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 10 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#onBeforeUpdate:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBeforeUpdate: " + }, + { + "kind": "Content", + "text": "(prev: " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": ", next: " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": ") => {\n x: number;\n y: number;\n props: {\n w: number;\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n text: string;\n scale: number;\n autoSize: boolean;\n };\n type: \"text\";\n rotation: number;\n index: string;\n parentId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLParentId", + "canonicalReference": "@tldraw/tlschema!TLParentId:type" + }, + { + "kind": "Content", + "text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";\n id: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n typeName: \"shape\";\n } | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onBeforeUpdate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#onDoubleClickEdge:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onDoubleClickEdge: " + }, + { + "kind": "Content", + "text": "(shape: " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": ") => {\n id: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n type: \"text\";\n props: {\n autoSize: boolean;\n scale?: undefined;\n };\n } | {\n id: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n type: \"text\";\n props: {\n scale: number;\n autoSize?: undefined;\n };\n } | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onDoubleClickEdge", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#onEditEnd:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onEditEnd: " + }, + { + "kind": "Reference", + "text": "TLOnEditEndHandler", + "canonicalReference": "@tldraw/editor!TLOnEditEndHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onEditEnd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#onResize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onResize: " + }, + { + "kind": "Reference", + "text": "TLOnResizeHandler", + "canonicalReference": "@tldraw/editor!TLOnResizeHandler:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onResize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n color: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n w: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n text: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n scale: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n autoSize: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 18 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil#toSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": ", ctx: " + }, + { + "kind": "Reference", + "text": "SvgExportContext", + "canonicalReference": "@tldraw/editor!SvgExportContext:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SVGGElement", + "canonicalReference": "!SVGGElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "ctx", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!TextShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"text\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!TLDRAW_FILE_EXTENSION:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "TLDRAW_FILE_EXTENSION: " + }, + { + "kind": "Content", + "text": "\".tldr\"" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/file.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "TLDRAW_FILE_EXTENSION", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!Tldraw:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Tldraw(props: " + }, + { + "kind": "Reference", + "text": "TldrawEditorBaseProps", + "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps:interface" + }, + { + "kind": "Content", + "text": " & ({\n store: " + }, + { + "kind": "Reference", + "text": "TLStore", + "canonicalReference": "@tldraw/tlschema!TLStore:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLStoreWithStatus", + "canonicalReference": "@tldraw/editor!TLStoreWithStatus:type" + }, + { + "kind": "Content", + "text": ";\n} | {\n store?: undefined;\n persistenceKey?: string;\n sessionId?: string;\n defaultName?: string;\n snapshot?: " + }, + { + "kind": "Reference", + "text": "StoreSnapshot", + "canonicalReference": "@tldraw/store!StoreSnapshot:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ">;\n}) & " + }, + { + "kind": "Reference", + "text": "TldrawUiProps", + "canonicalReference": "@tldraw/tldraw!TldrawUiProps:type" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLExternalContentProps", + "canonicalReference": "@tldraw/tldraw!~TLExternalContentProps:type" + }, + { + "kind": "Content", + "text": "> & {\n assetUrls?: " + }, + { + "kind": "Reference", + "text": "RecursivePartial", + "canonicalReference": "@tldraw/utils!RecursivePartial:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLEditorAssetUrls", + "canonicalReference": "@tldraw/tldraw!~TLEditorAssetUrls:type" + }, + { + "kind": "Content", + "text": ">;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/Tldraw.tsx", + "returnTypeTokenRange": { + "startIndex": 22, + "endIndex": 23 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "props", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 21 + }, + "isOptional": false + } + ], + "name": "Tldraw" + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TldrawFile:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TldrawFile " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/file.ts", + "releaseTag": "Public", + "name": "TldrawFile", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawFile#records:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "records: " + }, + { + "kind": "Reference", + "text": "UnknownRecord", + "canonicalReference": "@tldraw/store!UnknownRecord:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "records", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawFile#schema:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "schema: " + }, + { + "kind": "Reference", + "text": "SerializedSchema", + "canonicalReference": "@tldraw/store!SerializedSchema:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "schema", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawFile#tldrawFileFormatVersion:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tldrawFileFormatVersion: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "tldrawFileFormatVersion", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!TldrawUi:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "TldrawUi: " + }, + { + "kind": "Reference", + "text": "React.NamedExoticComponent", + "canonicalReference": "@types/react!React.NamedExoticComponent:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TldrawUiProps", + "canonicalReference": "@tldraw/tldraw!TldrawUiProps:type" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/TldrawUi.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "TldrawUi", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps:interface", + "docComment": "/**\n * Base props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TldrawUiBaseProps " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/TldrawUi.tsx", + "releaseTag": "Public", + "name": "TldrawUiBaseProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#children:member", + "docComment": "/**\n * The component's children.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "children?: " + }, + { + "kind": "Reference", + "text": "ReactNode", + "canonicalReference": "@types/react!React.ReactNode:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#hideUi:member", + "docComment": "/**\n * Whether to hide the user interface and only display the canvas.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "hideUi?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "hideUi", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#renderDebugMenuItems:member", + "docComment": "/**\n * Additional items to add to the debug menu (will be deprecated)\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "renderDebugMenuItems?: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "React.ReactNode", + "canonicalReference": "@types/react!React.ReactNode:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "renderDebugMenuItems", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#shareZone:member", + "docComment": "/**\n * A component to use for the share zone (will be deprecated)\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "shareZone?: " + }, + { + "kind": "Reference", + "text": "ReactNode", + "canonicalReference": "@types/react!React.ReactNode:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "shareZone", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#topZone:member", + "docComment": "/**\n * A component to use for the top zone (will be deprecated)\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "topZone?: " + }, + { + "kind": "Reference", + "text": "ReactNode", + "canonicalReference": "@types/react!React.ReactNode:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "topZone", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!TldrawUiContextProvider:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function TldrawUiContextProvider({ overrides, assetUrls, onUiEvent, children, }: " + }, + { + "kind": "Reference", + "text": "TldrawUiContextProviderProps", + "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/TldrawUiContextProvider.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ overrides, assetUrls, onUiEvent, children, }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "TldrawUiContextProvider" + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps:interface", + "docComment": "/**\n * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TldrawUiContextProviderProps " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/TldrawUiContextProvider.tsx", + "releaseTag": "Public", + "name": "TldrawUiContextProviderProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#assetUrls:member", + "docComment": "/**\n * Urls for where to find fonts and other assets for the UI.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "assetUrls?: " + }, + { + "kind": "Reference", + "text": "RecursivePartial", + "canonicalReference": "@tldraw/utils!RecursivePartial:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiAssetUrls", + "canonicalReference": "@tldraw/tldraw!~TLUiAssetUrls:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "assetUrls", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#children:member", + "docComment": "/**\n * The component's children.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "children?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#onUiEvent:member", + "docComment": "/**\n * Callback for when an event occurs in the UI.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onUiEvent?: " + }, + { + "kind": "Reference", + "text": "TLUiEventHandler", + "canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onUiEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#overrides:member", + "docComment": "/**\n * Overrides for the UI.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "overrides?: " + }, + { + "kind": "Reference", + "text": "TLUiOverrides", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLUiOverrides", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "overrides", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TldrawUiProps:type", + "docComment": "/**\n * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TldrawUiProps = " + }, + { + "kind": "Reference", + "text": "TldrawUiBaseProps", + "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps:interface" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "TldrawUiContextProviderProps", + "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/TldrawUi.tsx", + "releaseTag": "Public", + "name": "TldrawUiProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiActionItem " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useActions.tsx", + "releaseTag": "Public", + "name": "TLUiActionItem", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#checkbox:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "checkbox?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "checkbox", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#contextMenuLabel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "contextMenuLabel?: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "contextMenuLabel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#icon:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "icon?: " + }, + { + "kind": "Reference", + "text": "TLUiIconType", + "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "icon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#kbd:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "kbd?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "kbd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#label:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "label?: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "label", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#menuLabel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "menuLabel?: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "menuLabel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#onSelect:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onSelect: " + }, + { + "kind": "Content", + "text": "(source: " + }, + { + "kind": "Reference", + "text": "TLUiEventSource", + "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": " | void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onSelect", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#readonlyOk:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonlyOk: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "readonlyOk", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#shortcutsLabel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "shortcutsLabel?: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "shortcutsLabel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem#title:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "title?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "title", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiActionsContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiActionsContextType = " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useActions.tsx", + "releaseTag": "Public", + "name": "TLUiActionsContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiActionsMenuSchemaContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiActionsMenuSchemaContextType = " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchema", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useActionsMenuSchema.tsx", + "releaseTag": "Public", + "name": "TLUiActionsMenuSchemaContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiButtonProps extends " + }, + { + "kind": "Reference", + "text": "React.HTMLAttributes", + "canonicalReference": "@types/react!React.HTMLAttributes:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "HTMLButtonElement", + "canonicalReference": "!HTMLButtonElement:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Button.tsx", + "releaseTag": "Public", + "name": "TLUiButtonProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#disabled:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "disabled?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "disabled", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#icon:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "icon?: " + }, + { + "kind": "Reference", + "text": "TLUiIconType", + "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "icon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#iconLeft:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "iconLeft?: " + }, + { + "kind": "Reference", + "text": "TLUiIconType", + "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "iconLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#invertIcon:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "invertIcon?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "invertIcon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#isChecked:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isChecked?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "isChecked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#kbd:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "kbd?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "kbd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#label:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "label?: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "label", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#loading:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "loading?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "loading", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#smallIcon:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "smallIcon?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "smallIcon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#spinner:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "spinner?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "spinner", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type?: " + }, + { + "kind": "Content", + "text": "'danger' | 'normal' | 'primary'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 5 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiContextMenuProps:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiContextMenuProps " + } + ], + "fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/components/ContextMenu.d.ts", + "releaseTag": "Public", + "name": "TLUiContextMenuProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiContextMenuProps#children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "children: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/ContextMenu.tsx", + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiContextTTLUiMenuSchemaContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiContextTTLUiMenuSchemaContextType = " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchema", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useContextMenuSchema.tsx", + "releaseTag": "Public", + "name": "TLUiContextTTLUiMenuSchemaContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiCustomMenuItem:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiCustomMenuItem = " + }, + { + "kind": "Content", + "text": "{\n id: string;\n type: 'custom';\n disabled: boolean;\n readonlyOk: boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "releaseTag": "Public", + "name": "TLUiCustomMenuItem", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiDialog:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiDialog " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useDialogsProvider.tsx", + "releaseTag": "Public", + "name": "TLUiDialog", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiDialog#component:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component: " + }, + { + "kind": "Content", + "text": "(props: " + }, + { + "kind": "Reference", + "text": "TLUiDialogProps", + "canonicalReference": "@tldraw/tldraw!TLUiDialogProps:interface" + }, + { + "kind": "Content", + "text": ") => any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "component", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiDialog#id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiDialog#onClose:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onClose?: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onClose", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiDialogProps:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiDialogProps " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useDialogsProvider.tsx", + "releaseTag": "Public", + "name": "TLUiDialogProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiDialogProps#onClose:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onClose: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onClose", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiDialogsContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiDialogsContextType = " + }, + { + "kind": "Content", + "text": "{\n addDialog: (dialog: " + }, + { + "kind": "Reference", + "text": "Omit", + "canonicalReference": "!Omit:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiDialog", + "canonicalReference": "@tldraw/tldraw!TLUiDialog:interface" + }, + { + "kind": "Content", + "text": ", 'id'> & {\n id?: string;\n }) => string;\n removeDialog: (id: string) => string;\n updateDialog: (id: string, newDialogData: " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiDialog", + "canonicalReference": "@tldraw/tldraw!TLUiDialog:interface" + }, + { + "kind": "Content", + "text": ">) => string;\n clearDialogs: () => void;\n dialogs: " + }, + { + "kind": "Reference", + "text": "TLUiDialog", + "canonicalReference": "@tldraw/tldraw!TLUiDialog:interface" + }, + { + "kind": "Content", + "text": "[];\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useDialogsProvider.tsx", + "releaseTag": "Public", + "name": "TLUiDialogsContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiEventContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiEventContextType = " + }, + { + "kind": "Reference", + "text": "TLUiEventHandler", + "canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useEventsProvider.tsx", + "releaseTag": "Public", + "name": "TLUiEventContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiEventHandler = " + }, + { + "kind": "Content", + "text": "(name: T, data: " + }, + { + "kind": "Reference", + "text": "Join", + "canonicalReference": "@tldraw/tldraw!~Join:type" + }, + { + "kind": "Content", + "text": "<{\n source: " + }, + { + "kind": "Reference", + "text": "TLUiEventSource", + "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + }, + { + "kind": "Content", + "text": ";\n}, " + }, + { + "kind": "Reference", + "text": "TLUiEventMap", + "canonicalReference": "@tldraw/tldraw!~TLUiEventMap:interface" + }, + { + "kind": "Content", + "text": "[T]>) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useEventsProvider.tsx", + "releaseTag": "Public", + "name": "TLUiEventHandler", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + } + } + ], + "typeTokenRange": { + "startIndex": 7, + "endIndex": 14 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiEventSource = " + }, + { + "kind": "Content", + "text": "'actions-menu' | 'context-menu' | 'debug-panel' | 'dialog' | 'export-menu' | 'help-menu' | 'helper-buttons' | 'kbd' | 'menu' | 'navigation-zone' | 'page-menu' | 'people-menu' | 'quick-actions' | 'share-menu' | 'toolbar' | 'unknown' | 'zoom-menu'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useEventsProvider.tsx", + "releaseTag": "Public", + "name": "TLUiEventSource", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiHelpMenuSchemaContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiHelpMenuSchemaContextType = " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchema", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useHelpMenuSchema.tsx", + "releaseTag": "Public", + "name": "TLUiHelpMenuSchemaContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiIconProps:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiIconProps extends " + }, + { + "kind": "Reference", + "text": "React.HTMLProps", + "canonicalReference": "@types/react!React.HTMLProps:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "HTMLDivElement", + "canonicalReference": "!HTMLDivElement:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Icon.tsx", + "releaseTag": "Public", + "name": "TLUiIconProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiIconProps#children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "children?: " + }, + { + "kind": "Content", + "text": "undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiIconProps#color:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "color?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "color", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiIconProps#crossOrigin:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "crossOrigin?: " + }, + { + "kind": "Content", + "text": "'anonymous' | 'use-credentials'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "crossOrigin", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiIconProps#icon:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "icon: " + }, + { + "kind": "Reference", + "text": "TLUiIconType", + "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "icon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiIconProps#invertIcon:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "invertIcon?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "invertIcon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiIconProps#small:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "small?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "small", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 5 + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiIconType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiIconType = " + }, + { + "kind": "Content", + "text": "'align-bottom-center' | 'align-bottom-left' | 'align-bottom-right' | 'align-bottom' | 'align-center-center' | 'align-center-horizontal' | 'align-center-left' | 'align-center-right' | 'align-center-vertical' | 'align-left' | 'align-right' | 'align-top-center' | 'align-top-left' | 'align-top-right' | 'align-top' | 'arrow-left' | 'arrowhead-arrow' | 'arrowhead-bar' | 'arrowhead-diamond' | 'arrowhead-dot' | 'arrowhead-none' | 'arrowhead-square' | 'arrowhead-triangle-inverted' | 'arrowhead-triangle' | 'aspect-ratio' | 'avatar' | 'blob' | 'bring-forward' | 'bring-to-front' | 'check' | 'checkbox-checked' | 'checkbox-empty' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevrons-ne' | 'chevrons-sw' | 'clipboard-copied' | 'clipboard-copy' | 'code' | 'collab' | 'color' | 'comment' | 'cross-2' | 'cross' | 'dash-dashed' | 'dash-dotted' | 'dash-draw' | 'dash-solid' | 'discord' | 'distribute-horizontal' | 'distribute-vertical' | 'dot' | 'dots-horizontal' | 'dots-vertical' | 'drag-handle-dots' | 'duplicate' | 'edit' | 'external-link' | 'file' | 'fill-none' | 'fill-pattern' | 'fill-semi' | 'fill-solid' | 'follow' | 'following' | 'font-draw' | 'font-mono' | 'font-sans' | 'font-serif' | 'geo-arrow-down' | 'geo-arrow-left' | 'geo-arrow-right' | 'geo-arrow-up' | 'geo-check-box' | 'geo-cloud' | 'geo-diamond' | 'geo-ellipse' | 'geo-hexagon' | 'geo-octagon' | 'geo-oval' | 'geo-pentagon' | 'geo-rectangle' | 'geo-rhombus-2' | 'geo-rhombus' | 'geo-star' | 'geo-trapezoid' | 'geo-triangle' | 'geo-x-box' | 'github' | 'group' | 'hidden' | 'image' | 'info-circle' | 'leading' | 'link' | 'lock-small' | 'lock' | 'menu' | 'minus' | 'mixed' | 'pack' | 'page' | 'plus' | 'question-mark-circle' | 'question-mark' | 'redo' | 'reset-zoom' | 'rotate-ccw' | 'rotate-cw' | 'ruler' | 'search' | 'send-backward' | 'send-to-back' | 'settings-horizontal' | 'settings-vertical-1' | 'settings-vertical' | 'share-1' | 'share-2' | 'size-extra-large' | 'size-large' | 'size-medium' | 'size-small' | 'spline-cubic' | 'spline-line' | 'stack-horizontal' | 'stack-vertical' | 'stretch-horizontal' | 'stretch-vertical' | 'text-align-center' | 'text-align-justify' | 'text-align-left' | 'text-align-right' | 'tool-arrow' | 'tool-embed' | 'tool-eraser' | 'tool-frame' | 'tool-hand' | 'tool-highlight' | 'tool-laser' | 'tool-line' | 'tool-media' | 'tool-note' | 'tool-pencil' | 'tool-pointer' | 'tool-text' | 'trash' | 'triangle-down' | 'triangle-up' | 'twitter' | 'undo' | 'ungroup' | 'unlock-small' | 'unlock' | 'vertical-align-center' | 'vertical-align-end' | 'vertical-align-start' | 'visible' | 'warning-triangle' | 'zoom-in' | 'zoom-out'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/icon-types.ts", + "releaseTag": "Public", + "name": "TLUiIconType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiInputProps " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Input.tsx", + "releaseTag": "Public", + "name": "TLUiInputProps", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#autofocus:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "autofocus?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "autofocus", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#autoselect:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "autoselect?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "autoselect", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "children?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#className:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "className?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "className", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#defaultValue:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "defaultValue?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "defaultValue", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#disabled:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "disabled?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "disabled", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#icon:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "icon?: " + }, + { + "kind": "Reference", + "text": "TLUiIconType", + "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "icon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#iconLeft:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "iconLeft?: " + }, + { + "kind": "Reference", + "text": "TLUiIconType", + "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "iconLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#label:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "label?: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "label", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#onBlur:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBlur?: " + }, + { + "kind": "Content", + "text": "(value: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onBlur", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#onCancel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onCancel?: " + }, + { + "kind": "Content", + "text": "(value: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onCancel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#onComplete:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onComplete?: " + }, + { + "kind": "Content", + "text": "(value: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onComplete", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#onValueChange:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onValueChange?: " + }, + { + "kind": "Content", + "text": "(value: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "onValueChange", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#placeholder:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "placeholder?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "placeholder", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#shouldManuallyMaintainScrollPositionWhenFocused:member", + "docComment": "/**\n * Usually on iOS when you focus an input, the browser will adjust the viewport to bring the input into view. Sometimes this doesn't work properly though - for example, if the input is newly created, iOS seems to have a hard time adjusting the viewport for it. This prop allows you to opt-in to some extra code to manually bring the input into view when the visual viewport of the browser changes, but we don't want to use it everywhere because generally the native behavior looks nicer in scenarios where it's sufficient.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "shouldManuallyMaintainScrollPositionWhenFocused?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "shouldManuallyMaintainScrollPositionWhenFocused", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiInputProps#value:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "value?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsSchemaContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiKeyboardShortcutsSchemaContextType = " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchema", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useKeyboardShortcutsSchema.tsx", + "releaseTag": "Public", + "name": "TLUiKeyboardShortcutsSchemaContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsSchemaProviderProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiKeyboardShortcutsSchemaProviderProps = " + }, + { + "kind": "Content", + "text": "{\n overrides?: (editor: " + }, + { + "kind": "Reference", + "text": "Editor", + "canonicalReference": "@tldraw/editor!Editor:class" + }, + { + "kind": "Content", + "text": ", schema: " + }, + { + "kind": "Reference", + "text": "TLUiKeyboardShortcutsSchemaContextType", + "canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsSchemaContextType:type" + }, + { + "kind": "Content", + "text": ", more: {\n tools: " + }, + { + "kind": "Reference", + "text": "TLUiToolsContextType", + "canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type" + }, + { + "kind": "Content", + "text": ";\n actions: " + }, + { + "kind": "Reference", + "text": "TLUiActionsContextType", + "canonicalReference": "@tldraw/tldraw!TLUiActionsContextType:type" + }, + { + "kind": "Content", + "text": ";\n }) => " + }, + { + "kind": "Reference", + "text": "TLUiKeyboardShortcutsSchemaContextType", + "canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsSchemaContextType:type" + }, + { + "kind": "Content", + "text": ";\n children: any;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useKeyboardShortcutsSchema.tsx", + "releaseTag": "Public", + "name": "TLUiKeyboardShortcutsSchemaProviderProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiMenuChild:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiMenuChild = " + }, + { + "kind": "Reference", + "text": "TLUiCustomMenuItem", + "canonicalReference": "@tldraw/tldraw!TLUiCustomMenuItem:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLUiMenuGroup", + "canonicalReference": "@tldraw/tldraw!TLUiMenuGroup:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLUiMenuItem", + "canonicalReference": "@tldraw/tldraw!TLUiMenuItem:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLUiSubMenu", + "canonicalReference": "@tldraw/tldraw!TLUiSubMenu:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "releaseTag": "Public", + "name": "TLUiMenuChild", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiMenuGroup:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiMenuGroup = " + }, + { + "kind": "Content", + "text": "{\n id: string;\n type: 'group';\n checkbox: boolean;\n disabled: boolean;\n readonlyOk: boolean;\n children: " + }, + { + "kind": "Reference", + "text": "TLUiMenuChild", + "canonicalReference": "@tldraw/tldraw!TLUiMenuChild:type" + }, + { + "kind": "Content", + "text": "[];\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "releaseTag": "Public", + "name": "TLUiMenuGroup", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiMenuItem:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiMenuItem = " + }, + { + "kind": "Content", + "text": "{\n id: string;\n type: 'item';\n readonlyOk: boolean;\n actionItem: " + }, + { + "kind": "Reference", + "text": "TLUiActionItem", + "canonicalReference": "@tldraw/tldraw!TLUiActionItem:interface" + }, + { + "kind": "Content", + "text": ";\n disabled: boolean;\n checked: boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "releaseTag": "Public", + "name": "TLUiMenuItem", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiMenuSchema = " + }, + { + "kind": "Content", + "text": "(" + }, + { + "kind": "Reference", + "text": "TLUiCustomMenuItem", + "canonicalReference": "@tldraw/tldraw!TLUiCustomMenuItem:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLUiMenuGroup", + "canonicalReference": "@tldraw/tldraw!TLUiMenuGroup:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLUiMenuItem", + "canonicalReference": "@tldraw/tldraw!TLUiMenuItem:type" + }, + { + "kind": "Content", + "text": ")[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "releaseTag": "Public", + "name": "TLUiMenuSchema", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchemaContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiMenuSchemaContextType = " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchema", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useMenuSchema.tsx", + "releaseTag": "Public", + "name": "TLUiMenuSchemaContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchemaProviderProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiMenuSchemaProviderProps = " + }, + { + "kind": "Content", + "text": "{\n overrides?: (editor: " + }, + { + "kind": "Reference", + "text": "Editor", + "canonicalReference": "@tldraw/editor!Editor:class" + }, + { + "kind": "Content", + "text": ", schema: " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchemaContextType", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchemaContextType:type" + }, + { + "kind": "Content", + "text": ", helpers: {\n actions: " + }, + { + "kind": "Reference", + "text": "ReturnType", + "canonicalReference": "!ReturnType:type" + }, + { + "kind": "Content", + "text": ";\n noneSelected: boolean;\n oneSelected: boolean;\n twoSelected: boolean;\n threeSelected: boolean;\n }) => " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchemaContextType", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchemaContextType:type" + }, + { + "kind": "Content", + "text": ";\n children: any;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useMenuSchema.tsx", + "releaseTag": "Public", + "name": "TLUiMenuSchemaProviderProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiOverrides " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/overrides.ts", + "releaseTag": "Public", + "name": "TLUiOverrides", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides#actions:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "actions?: " + }, + { + "kind": "Reference", + "text": "WithDefaultHelpers", + "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "NonNullable", + "canonicalReference": "!NonNullable:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ActionsProviderProps", + "canonicalReference": "@tldraw/tldraw!~ActionsProviderProps:type" + }, + { + "kind": "Content", + "text": "['overrides']>>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "actions", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides#actionsMenu:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "actionsMenu?: " + }, + { + "kind": "Reference", + "text": "WithDefaultHelpers", + "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "NonNullable", + "canonicalReference": "!NonNullable:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ActionsMenuSchemaProviderProps", + "canonicalReference": "@tldraw/tldraw!~ActionsMenuSchemaProviderProps:type" + }, + { + "kind": "Content", + "text": "['overrides']>>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "actionsMenu", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides#contextMenu:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "contextMenu?: " + }, + { + "kind": "Reference", + "text": "WithDefaultHelpers", + "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "NonNullable", + "canonicalReference": "!NonNullable:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiContextMenuSchemaProviderProps", + "canonicalReference": "@tldraw/tldraw!~TLUiContextMenuSchemaProviderProps:type" + }, + { + "kind": "Content", + "text": "['overrides']>>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "contextMenu", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides#helpMenu:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "helpMenu?: " + }, + { + "kind": "Reference", + "text": "WithDefaultHelpers", + "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "NonNullable", + "canonicalReference": "!NonNullable:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiHelpMenuSchemaProviderProps", + "canonicalReference": "@tldraw/tldraw!~TLUiHelpMenuSchemaProviderProps:type" + }, + { + "kind": "Content", + "text": "['overrides']>>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "helpMenu", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides#keyboardShortcutsMenu:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "keyboardShortcutsMenu?: " + }, + { + "kind": "Reference", + "text": "WithDefaultHelpers", + "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "NonNullable", + "canonicalReference": "!NonNullable:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiKeyboardShortcutsSchemaProviderProps", + "canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsSchemaProviderProps:type" + }, + { + "kind": "Content", + "text": "['overrides']>>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "keyboardShortcutsMenu", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides#menu:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "menu?: " + }, + { + "kind": "Reference", + "text": "WithDefaultHelpers", + "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "NonNullable", + "canonicalReference": "!NonNullable:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiMenuSchemaProviderProps", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchemaProviderProps:type" + }, + { + "kind": "Content", + "text": "['overrides']>>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "menu", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides#toolbar:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toolbar?: " + }, + { + "kind": "Reference", + "text": "WithDefaultHelpers", + "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "NonNullable", + "canonicalReference": "!NonNullable:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiToolbarSchemaProviderProps", + "canonicalReference": "@tldraw/tldraw!~TLUiToolbarSchemaProviderProps:type" + }, + { + "kind": "Content", + "text": "['overrides']>>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "toolbar", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides#tools:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tools?: " + }, + { + "kind": "Reference", + "text": "WithDefaultHelpers", + "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "NonNullable", + "canonicalReference": "!NonNullable:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiToolsProviderProps", + "canonicalReference": "@tldraw/tldraw!TLUiToolsProviderProps:type" + }, + { + "kind": "Content", + "text": "['overrides']>>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "tools", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiOverrides#translations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "translations?: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationProviderProps", + "canonicalReference": "@tldraw/tldraw!~TLUiTranslationProviderProps:interface" + }, + { + "kind": "Content", + "text": "['overrides']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "translations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiSubMenu:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiSubMenu = " + }, + { + "kind": "Content", + "text": "{\n id: string;\n type: 'submenu';\n label: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ";\n disabled: boolean;\n readonlyOk: boolean;\n children: " + }, + { + "kind": "Reference", + "text": "TLUiMenuChild", + "canonicalReference": "@tldraw/tldraw!TLUiMenuChild:type" + }, + { + "kind": "Content", + "text": "[];\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menuHelpers.ts", + "releaseTag": "Public", + "name": "TLUiSubMenu", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiToast:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiToast " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToastsProvider.tsx", + "releaseTag": "Public", + "name": "TLUiToast", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToast#actions:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "actions?: " + }, + { + "kind": "Reference", + "text": "TLUiToastAction", + "canonicalReference": "@tldraw/tldraw!TLUiToastAction:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "actions", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToast#closeLabel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "closeLabel?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "closeLabel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToast#description:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "description?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "description", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToast#icon:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "icon?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "icon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToast#id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToast#keepOpen:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "keepOpen?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "keepOpen", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToast#title:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "title?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "title", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiToastAction:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiToastAction " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToastsProvider.tsx", + "releaseTag": "Public", + "name": "TLUiToastAction", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToastAction#label:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "label: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "label", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToastAction#onClick:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onClick: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToastAction#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Content", + "text": "'primary' | 'secondary' | 'warn'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiToastsContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiToastsContextType = " + }, + { + "kind": "Content", + "text": "{\n addToast: (toast: " + }, + { + "kind": "Reference", + "text": "Omit", + "canonicalReference": "!Omit:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiToast", + "canonicalReference": "@tldraw/tldraw!TLUiToast:interface" + }, + { + "kind": "Content", + "text": ", 'id'> & {\n id?: string;\n }) => string;\n removeToast: (id: " + }, + { + "kind": "Reference", + "text": "TLUiToast", + "canonicalReference": "@tldraw/tldraw!TLUiToast:interface" + }, + { + "kind": "Content", + "text": "['id']) => string;\n clearToasts: () => void;\n toasts: " + }, + { + "kind": "Reference", + "text": "TLUiToast", + "canonicalReference": "@tldraw/tldraw!TLUiToast:interface" + }, + { + "kind": "Content", + "text": "[];\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToastsProvider.tsx", + "releaseTag": "Public", + "name": "TLUiToastsContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 10 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiToolbarItem:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiToolbarItem = " + }, + { + "kind": "Content", + "text": "{\n id: string;\n type: 'item';\n readonlyOk: boolean;\n toolItem: " + }, + { + "kind": "Reference", + "text": "TLUiToolItem", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToolbarSchema.tsx", + "releaseTag": "Public", + "name": "TLUiToolbarItem", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiToolbarSchemaContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiToolbarSchemaContextType = " + }, + { + "kind": "Reference", + "text": "TLUiToolbarItem", + "canonicalReference": "@tldraw/tldraw!TLUiToolbarItem:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToolbarSchema.tsx", + "releaseTag": "Public", + "name": "TLUiToolbarSchemaContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLUiToolItem " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTools.tsx", + "releaseTag": "Public", + "name": "TLUiToolItem", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem#icon:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "icon: " + }, + { + "kind": "Reference", + "text": "TLUiIconType", + "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "icon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem#id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem#kbd:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "kbd?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "kbd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem#label:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "label: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "label", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem#meta:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "meta?: " + }, + { + "kind": "Content", + "text": "{\n [key: string]: any;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "meta", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem#onSelect:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onSelect: " + }, + { + "kind": "Content", + "text": "(source: " + }, + { + "kind": "Reference", + "text": "TLUiEventSource", + "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onSelect", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem#readonlyOk:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonlyOk: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "readonlyOk", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem#shortcutsLabel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "shortcutsLabel?: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "shortcutsLabel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiToolsContextType = " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTools.tsx", + "releaseTag": "Public", + "name": "TLUiToolsContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiToolsProviderProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiToolsProviderProps = " + }, + { + "kind": "Content", + "text": "{\n overrides?: (editor: " + }, + { + "kind": "Reference", + "text": "Editor", + "canonicalReference": "@tldraw/editor!Editor:class" + }, + { + "kind": "Content", + "text": ", tools: " + }, + { + "kind": "Reference", + "text": "TLUiToolsContextType", + "canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type" + }, + { + "kind": "Content", + "text": ", helpers: {\n insertMedia: () => void;\n }) => " + }, + { + "kind": "Reference", + "text": "TLUiToolsContextType", + "canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type" + }, + { + "kind": "Content", + "text": ";\n children: any;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTools.tsx", + "releaseTag": "Public", + "name": "TLUiToolsProviderProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 8 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiTranslation:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiTranslation = " + }, + { + "kind": "Content", + "text": "{\n readonly locale: string;\n readonly label: string;\n readonly messages: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ", string>;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTranslation/translations.ts", + "releaseTag": "Public", + "name": "TLUiTranslation", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationContextType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiTranslationContextType = " + }, + { + "kind": "Reference", + "text": "TLUiTranslation", + "canonicalReference": "@tldraw/tldraw!TLUiTranslation:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTranslation/useTranslation.tsx", + "releaseTag": "Public", + "name": "TLUiTranslationContextType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUiTranslationKey = " + }, + { + "kind": "Content", + "text": "'action.align-bottom' | 'action.align-center-horizontal.short' | 'action.align-center-horizontal' | 'action.align-center-vertical.short' | 'action.align-center-vertical' | 'action.align-left' | 'action.align-right' | 'action.align-top' | 'action.back-to-content' | 'action.bring-forward' | 'action.bring-to-front' | 'action.convert-to-bookmark' | 'action.convert-to-embed' | 'action.copy-as-json.short' | 'action.copy-as-json' | 'action.copy-as-png.short' | 'action.copy-as-png' | 'action.copy-as-svg.short' | 'action.copy-as-svg' | 'action.copy' | 'action.cut' | 'action.delete' | 'action.distribute-horizontal.short' | 'action.distribute-horizontal' | 'action.distribute-vertical.short' | 'action.distribute-vertical' | 'action.duplicate' | 'action.edit-link' | 'action.exit-pen-mode' | 'action.export-as-json.short' | 'action.export-as-json' | 'action.export-as-png.short' | 'action.export-as-png' | 'action.export-as-svg.short' | 'action.export-as-svg' | 'action.flip-horizontal.short' | 'action.flip-horizontal' | 'action.flip-vertical.short' | 'action.flip-vertical' | 'action.fork-project' | 'action.group' | 'action.insert-embed' | 'action.insert-media' | 'action.leave-shared-project' | 'action.new-project' | 'action.new-shared-project' | 'action.open-cursor-chat' | 'action.open-embed-link' | 'action.open-file' | 'action.pack' | 'action.paste' | 'action.print' | 'action.redo' | 'action.rotate-ccw' | 'action.rotate-cw' | 'action.save-copy' | 'action.select-all' | 'action.select-none' | 'action.send-backward' | 'action.send-to-back' | 'action.share-project' | 'action.stack-horizontal.short' | 'action.stack-horizontal' | 'action.stack-vertical.short' | 'action.stack-vertical' | 'action.stop-following' | 'action.stretch-horizontal.short' | 'action.stretch-horizontal' | 'action.stretch-vertical.short' | 'action.stretch-vertical' | 'action.toggle-auto-size' | 'action.toggle-dark-mode.menu' | 'action.toggle-dark-mode' | 'action.toggle-debug-mode.menu' | 'action.toggle-debug-mode' | 'action.toggle-focus-mode.menu' | 'action.toggle-focus-mode' | 'action.toggle-grid.menu' | 'action.toggle-grid' | 'action.toggle-lock' | 'action.toggle-reduce-motion.menu' | 'action.toggle-reduce-motion' | 'action.toggle-snap-mode.menu' | 'action.toggle-snap-mode' | 'action.toggle-tool-lock.menu' | 'action.toggle-tool-lock' | 'action.toggle-transparent.context-menu' | 'action.toggle-transparent.menu' | 'action.toggle-transparent' | 'action.undo' | 'action.ungroup' | 'action.unlock-all' | 'action.zoom-in' | 'action.zoom-out' | 'action.zoom-to-100' | 'action.zoom-to-fit' | 'action.zoom-to-selection' | 'actions-menu.title' | 'align-style.end' | 'align-style.justify' | 'align-style.middle' | 'align-style.start' | 'arrowheadEnd-style.arrow' | 'arrowheadEnd-style.bar' | 'arrowheadEnd-style.diamond' | 'arrowheadEnd-style.dot' | 'arrowheadEnd-style.inverted' | 'arrowheadEnd-style.none' | 'arrowheadEnd-style.pipe' | 'arrowheadEnd-style.square' | 'arrowheadEnd-style.triangle' | 'arrowheadStart-style.arrow' | 'arrowheadStart-style.bar' | 'arrowheadStart-style.diamond' | 'arrowheadStart-style.dot' | 'arrowheadStart-style.inverted' | 'arrowheadStart-style.none' | 'arrowheadStart-style.pipe' | 'arrowheadStart-style.square' | 'arrowheadStart-style.triangle' | 'color-style.black' | 'color-style.blue' | 'color-style.green' | 'color-style.grey' | 'color-style.light-blue' | 'color-style.light-green' | 'color-style.light-red' | 'color-style.light-violet' | 'color-style.orange' | 'color-style.red' | 'color-style.violet' | 'color-style.yellow' | 'context-menu.arrange' | 'context-menu.copy-as' | 'context-menu.export-as' | 'context-menu.move-to-page' | 'context-menu.reorder' | 'context.pages.new-page' | 'cursor-chat.type-to-chat' | 'dash-style.dashed' | 'dash-style.dotted' | 'dash-style.draw' | 'dash-style.solid' | 'debug-panel.more' | 'edit-link-dialog.cancel' | 'edit-link-dialog.clear' | 'edit-link-dialog.detail' | 'edit-link-dialog.invalid-url' | 'edit-link-dialog.save' | 'edit-link-dialog.title' | 'edit-link-dialog.url' | 'edit-pages-dialog.move-down' | 'edit-pages-dialog.move-up' | 'embed-dialog.back' | 'embed-dialog.cancel' | 'embed-dialog.create' | 'embed-dialog.instruction' | 'embed-dialog.invalid-url' | 'embed-dialog.title' | 'embed-dialog.url' | 'file-system.confirm-clear.cancel' | 'file-system.confirm-clear.continue' | 'file-system.confirm-clear.description' | 'file-system.confirm-clear.dont-show-again' | 'file-system.confirm-clear.title' | 'file-system.confirm-open.cancel' | 'file-system.confirm-open.description' | 'file-system.confirm-open.dont-show-again' | 'file-system.confirm-open.open' | 'file-system.confirm-open.title' | 'file-system.file-open-error.file-format-version-too-new' | 'file-system.file-open-error.generic-corrupted-file' | 'file-system.file-open-error.not-a-tldraw-file' | 'file-system.file-open-error.title' | 'file-system.shared-document-file-open-error.description' | 'file-system.shared-document-file-open-error.title' | 'fill-style.none' | 'fill-style.pattern' | 'fill-style.semi' | 'fill-style.solid' | 'focus-mode.toggle-focus-mode' | 'font-style.draw' | 'font-style.mono' | 'font-style.sans' | 'font-style.serif' | 'geo-style.arrow-down' | 'geo-style.arrow-left' | 'geo-style.arrow-right' | 'geo-style.arrow-up' | 'geo-style.check-box' | 'geo-style.cloud' | 'geo-style.diamond' | 'geo-style.ellipse' | 'geo-style.hexagon' | 'geo-style.octagon' | 'geo-style.oval' | 'geo-style.pentagon' | 'geo-style.rectangle' | 'geo-style.rhombus-2' | 'geo-style.rhombus' | 'geo-style.star' | 'geo-style.trapezoid' | 'geo-style.triangle' | 'geo-style.x-box' | 'help-menu.about' | 'help-menu.discord' | 'help-menu.github' | 'help-menu.keyboard-shortcuts' | 'help-menu.title' | 'help-menu.twitter' | 'home-project-dialog.description' | 'home-project-dialog.ok' | 'home-project-dialog.title' | 'menu.copy-as' | 'menu.edit' | 'menu.export-as' | 'menu.file' | 'menu.language' | 'menu.preferences' | 'menu.title' | 'menu.view' | 'navigation-zone.toggle-minimap' | 'navigation-zone.zoom' | 'opacity-style.0.1' | 'opacity-style.0.25' | 'opacity-style.0.5' | 'opacity-style.0.75' | 'opacity-style.1' | 'page-menu.create-new-page' | 'page-menu.edit-done' | 'page-menu.edit-start' | 'page-menu.go-to-page' | 'page-menu.max-page-count-reached' | 'page-menu.new-page-initial-name' | 'page-menu.submenu.delete' | 'page-menu.submenu.duplicate-page' | 'page-menu.submenu.move-down' | 'page-menu.submenu.move-up' | 'page-menu.submenu.rename' | 'page-menu.submenu.title' | 'page-menu.title' | 'people-menu.change-color' | 'people-menu.change-name' | 'people-menu.follow' | 'people-menu.following' | 'people-menu.invite' | 'people-menu.leading' | 'people-menu.title' | 'people-menu.user' | 'rename-project-dialog.cancel' | 'rename-project-dialog.rename' | 'rename-project-dialog.title' | 'share-menu.copy-link-note' | 'share-menu.copy-link' | 'share-menu.copy-readonly-link-note' | 'share-menu.copy-readonly-link' | 'share-menu.create-snapshot-link' | 'share-menu.default-project-name' | 'share-menu.fork-note' | 'share-menu.offline-note' | 'share-menu.project-too-large' | 'share-menu.readonly-link' | 'share-menu.save-note' | 'share-menu.share-project' | 'share-menu.snapshot-link-note' | 'share-menu.title' | 'share-menu.upload-failed' | 'sharing.confirm-leave.cancel' | 'sharing.confirm-leave.description' | 'sharing.confirm-leave.dont-show-again' | 'sharing.confirm-leave.leave' | 'sharing.confirm-leave.title' | 'shortcuts-dialog.collaboration' | 'shortcuts-dialog.edit' | 'shortcuts-dialog.file' | 'shortcuts-dialog.preferences' | 'shortcuts-dialog.title' | 'shortcuts-dialog.tools' | 'shortcuts-dialog.transform' | 'shortcuts-dialog.view' | 'size-style.l' | 'size-style.m' | 'size-style.s' | 'size-style.xl' | 'spline-style.cubic' | 'spline-style.line' | 'style-panel.align' | 'style-panel.arrowhead-end' | 'style-panel.arrowhead-start' | 'style-panel.arrowheads' | 'style-panel.color' | 'style-panel.dash' | 'style-panel.fill' | 'style-panel.font' | 'style-panel.geo' | 'style-panel.mixed' | 'style-panel.opacity' | 'style-panel.position' | 'style-panel.size' | 'style-panel.spline' | 'style-panel.title' | 'style-panel.vertical-align' | 'toast.close' | 'toast.error.copy-fail.desc' | 'toast.error.copy-fail.title' | 'toast.error.export-fail.desc' | 'toast.error.export-fail.title' | 'tool-panel.drawing' | 'tool-panel.more' | 'tool-panel.shapes' | 'tool.arrow-down' | 'tool.arrow-left' | 'tool.arrow-right' | 'tool.arrow-up' | 'tool.arrow' | 'tool.asset' | 'tool.check-box' | 'tool.cloud' | 'tool.diamond' | 'tool.draw' | 'tool.ellipse' | 'tool.embed' | 'tool.eraser' | 'tool.frame' | 'tool.hand' | 'tool.hexagon' | 'tool.highlight' | 'tool.laser' | 'tool.line' | 'tool.note' | 'tool.octagon' | 'tool.oval' | 'tool.pentagon' | 'tool.rectangle' | 'tool.rhombus' | 'tool.select' | 'tool.star' | 'tool.text' | 'tool.trapezoid' | 'tool.triangle' | 'tool.x-box' | 'vscode.file-open.backup-failed' | 'vscode.file-open.backup-saved' | 'vscode.file-open.backup' | 'vscode.file-open.desc' | 'vscode.file-open.dont-show-again' | 'vscode.file-open.open'" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTranslation/TLUiTranslationKey.ts", + "releaseTag": "Public", + "name": "TLUiTranslationKey", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!toolbarItem:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function toolbarItem(toolItem: " + }, + { + "kind": "Reference", + "text": "TLUiToolItem", + "canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "TLUiToolbarItem", + "canonicalReference": "@tldraw/tldraw!TLUiToolbarItem:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToolbarSchema.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "toolItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "toolbarItem" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tldraw!truncateStringWithEllipsis:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "truncateStringWithEllipsis: " + }, + { + "kind": "Content", + "text": "(str: string, maxLength: number) => string" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/utils/text.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "truncateStringWithEllipsis", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!UiEventsProvider:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function UiEventsProvider({ onEvent, children }: " + }, + { + "kind": "Reference", + "text": "EventsProviderProps", + "canonicalReference": "@tldraw/tldraw!EventsProviderProps:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useEventsProvider.tsx", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ onEvent, children }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "UiEventsProvider" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useActions:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useActions(): " + }, + { + "kind": "Reference", + "text": "TLUiActionsContextType", + "canonicalReference": "@tldraw/tldraw!TLUiActionsContextType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useActions.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useActions" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useActionsMenuSchema:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useActionsMenuSchema(): " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchema", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useActionsMenuSchema.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useActionsMenuSchema" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useBreakpoint:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useBreakpoint(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useBreakpoint.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useBreakpoint" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useCanRedo:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useCanRedo(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useCanRedo.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useCanRedo" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useCanUndo:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useCanUndo(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useCanUndo.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useCanUndo" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useContextMenuSchema:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useContextMenuSchema(): " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchema", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useContextMenuSchema.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useContextMenuSchema" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useCopyAs:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useCopyAs(): " + }, + { + "kind": "Content", + "text": "(ids?: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[], format?: " + }, + { + "kind": "Reference", + "text": "TLCopyType", + "canonicalReference": "@tldraw/tldraw!~TLCopyType:type" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useCopyAs.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useCopyAs" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useDefaultHelpers:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useDefaultHelpers(): " + }, + { + "kind": "Content", + "text": "{\n addToast: (toast: " + }, + { + "kind": "Reference", + "text": "Omit", + "canonicalReference": "!Omit:type" + }, + { + "kind": "Content", + "text": " & {\n id?: string | undefined;\n }) => string;\n removeToast: (id: string) => string;\n clearToasts: () => void;\n addDialog: (dialog: " + }, + { + "kind": "Reference", + "text": "Omit", + "canonicalReference": "!Omit:type" + }, + { + "kind": "Content", + "text": " & {\n id?: string | undefined;\n }) => string;\n clearDialogs: () => void;\n removeDialog: (id: string) => string;\n updateDialog: (id: string, newDialogData: " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": ") => string;\n msg: (id: import(\"../..\")." + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ") => string;\n isMobile: boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/overrides.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 16 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useDefaultHelpers" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useDialogs:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useDialogs(): " + }, + { + "kind": "Reference", + "text": "TLUiDialogsContextType", + "canonicalReference": "@tldraw/tldraw!TLUiDialogsContextType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useDialogsProvider.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useDialogs" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useExportAs:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useExportAs(): " + }, + { + "kind": "Content", + "text": "(ids?: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[], format?: " + }, + { + "kind": "Reference", + "text": "TLExportType", + "canonicalReference": "@tldraw/tldraw!~TLExportType:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useExportAs.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useExportAs" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useHelpMenuSchema:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useHelpMenuSchema(): " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchema", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useHelpMenuSchema.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useHelpMenuSchema" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useKeyboardShortcuts:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useKeyboardShortcuts(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useKeyboardShortcuts.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useKeyboardShortcuts" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useKeyboardShortcutsSchema:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useKeyboardShortcutsSchema(): " + }, + { + "kind": "Reference", + "text": "TLUiKeyboardShortcutsSchemaContextType", + "canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsSchemaContextType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useKeyboardShortcutsSchema.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useKeyboardShortcutsSchema" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useLocalStorageState:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useLocalStorageState(key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", defaultValue: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "readonly [T, (setter: ((value: T) => T) | T) => void]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useLocalStorageState.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "defaultValue", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "useLocalStorageState" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useMenuClipboardEvents:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useMenuClipboardEvents(): " + }, + { + "kind": "Content", + "text": "{\n copy: (source: " + }, + { + "kind": "Reference", + "text": "TLUiEventSource", + "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + }, + { + "kind": "Content", + "text": ") => void;\n cut: (source: " + }, + { + "kind": "Reference", + "text": "TLUiEventSource", + "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + }, + { + "kind": "Content", + "text": ") => void;\n paste: (data: " + }, + { + "kind": "Reference", + "text": "ClipboardItem", + "canonicalReference": "!ClipboardItem:interface" + }, + { + "kind": "Content", + "text": "[] | " + }, + { + "kind": "Reference", + "text": "DataTransfer", + "canonicalReference": "!DataTransfer:interface" + }, + { + "kind": "Content", + "text": ", source: " + }, + { + "kind": "Reference", + "text": "TLUiEventSource", + "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + }, + { + "kind": "Content", + "text": ", point?: " + }, + { + "kind": "Reference", + "text": "VecLike", + "canonicalReference": "@tldraw/editor!VecLike:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useClipboardEvents.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 16 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useMenuClipboardEvents" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useMenuIsOpen:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useMenuIsOpen(id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", cb?: " + }, + { + "kind": "Content", + "text": "(isOpen: boolean) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "readonly [boolean, (isOpen: boolean) => void]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useMenuIsOpen.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "name": "useMenuIsOpen" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useMenuSchema:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useMenuSchema(): " + }, + { + "kind": "Reference", + "text": "TLUiMenuSchema", + "canonicalReference": "@tldraw/tldraw!TLUiMenuSchema:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useMenuSchema.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useMenuSchema" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useNativeClipboardEvents:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useNativeClipboardEvents(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useClipboardEvents.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useNativeClipboardEvents" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useReadonly:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useReadonly(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useReadonly.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useReadonly" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useToasts:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useToasts(): " + }, + { + "kind": "Reference", + "text": "TLUiToastsContextType", + "canonicalReference": "@tldraw/tldraw!TLUiToastsContextType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToastsProvider.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useToasts" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useToolbarSchema:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useToolbarSchema(): " + }, + { + "kind": "Reference", + "text": "TLUiToolbarSchemaContextType", + "canonicalReference": "@tldraw/tldraw!TLUiToolbarSchemaContextType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToolbarSchema.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useToolbarSchema" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useTools:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useTools(): " + }, + { + "kind": "Reference", + "text": "TLUiToolsContextType", + "canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTools.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useTools" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useTranslation:function(1)", + "docComment": "/**\n * Returns a function to translate a translation key into a string based on the current translation.\n *\n * @example\n * ```ts\n * const msg = useTranslation()\n * const label = msg('style-panel.styles')\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useTranslation(): " + }, + { + "kind": "Content", + "text": "(id: " + }, + { + "kind": "Reference", + "text": "TLUiTranslationKey", + "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + }, + { + "kind": "Content", + "text": ") => string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTranslation/useTranslation.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useTranslation" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tldraw!useUiEvents:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function useUiEvents(): " + }, + { + "kind": "Reference", + "text": "TLUiEventContextType", + "canonicalReference": "@tldraw/tldraw!TLUiEventContextType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useEventsProvider.tsx", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "useUiEvents" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!VideoShapeUtil:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class VideoShapeUtil extends " + }, + { + "kind": "Reference", + "text": "BaseBoxShapeUtil", + "canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLVideoShape", + "canonicalReference": "@tldraw/tlschema!TLVideoShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/shapes/video/VideoShapeUtil.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "VideoShapeUtil", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#canEdit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canEdit: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canEdit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#component:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "component(shape: " + }, + { + "kind": "Reference", + "text": "TLVideoShape", + "canonicalReference": "@tldraw/tlschema!TLVideoShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "component" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#getDefaultProps:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getDefaultProps(): " + }, + { + "kind": "Reference", + "text": "TLVideoShape", + "canonicalReference": "@tldraw/tlschema!TLVideoShape:type" + }, + { + "kind": "Content", + "text": "['props']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getDefaultProps" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#indicator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indicator(shape: " + }, + { + "kind": "Reference", + "text": "TLVideoShape", + "canonicalReference": "@tldraw/tlschema!TLVideoShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "JSX.Element", + "canonicalReference": "@types/react!__global.JSX.Element: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": "indicator" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#isAspectRatioLocked:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isAspectRatioLocked: " + }, + { + "kind": "Content", + "text": "() => boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isAspectRatioLocked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!VideoShapeUtil.migrations:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static migrations: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "migrations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!VideoShapeUtil.props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static props: " + }, + { + "kind": "Content", + "text": "{\n w: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n time: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n playing: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n url: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n assetId: import(\"@tldraw/editor\")." + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 16 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#toSvg:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toSvg(shape: " + }, + { + "kind": "Reference", + "text": "TLVideoShape", + "canonicalReference": "@tldraw/tlschema!TLVideoShape:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "SVGGElement", + "canonicalReference": "!SVGGElement:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "shape", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "toSvg" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!VideoShapeUtil.type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static type: " + }, + { + "kind": "Content", + "text": "\"video\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tldraw!ZoomTool:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class ZoomTool extends " + }, + { + "kind": "Reference", + "text": "StateNode", + "canonicalReference": "@tldraw/editor!StateNode:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tldraw/src/lib/tools/ZoomTool/ZoomTool.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "ZoomTool", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ZoomTool.children:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static children: " + }, + { + "kind": "Content", + "text": "() => (typeof " + }, + { + "kind": "Reference", + "text": "Idle", + "canonicalReference": "@tldraw/tldraw!~Idle_12:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "Pointing", + "canonicalReference": "@tldraw/tldraw!~Pointing_8:class" + }, + { + "kind": "Content", + "text": " | typeof " + }, + { + "kind": "Reference", + "text": "ZoomBrushing", + "canonicalReference": "@tldraw/tldraw!~ZoomBrushing:class" + }, + { + "kind": "Content", + "text": ")[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "children", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ZoomTool.id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ZoomTool#info:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "info: " + }, + { + "kind": "Reference", + "text": "TLPointerEventInfo", + "canonicalReference": "@tldraw/editor!TLPointerEventInfo:type" + }, + { + "kind": "Content", + "text": " & {\n onInteractionEnd?: string | undefined;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "info", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ZoomTool.initial:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static initial: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "initial", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ZoomTool#onEnter:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onEnter: " + }, + { + "kind": "Content", + "text": "(info: " + }, + { + "kind": "Reference", + "text": "TLPointerEventInfo", + "canonicalReference": "@tldraw/editor!TLPointerEventInfo:type" + }, + { + "kind": "Content", + "text": " & {\n onInteractionEnd: string;\n }) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onEnter", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ZoomTool#onExit:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onExit: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onExit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ZoomTool#onInterrupt:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onInterrupt: " + }, + { + "kind": "Reference", + "text": "TLInterruptEvent", + "canonicalReference": "@tldraw/editor!TLInterruptEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onInterrupt", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ZoomTool#onKeyDown:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onKeyDown: " + }, + { + "kind": "Reference", + "text": "TLKeyboardEvent", + "canonicalReference": "@tldraw/editor!TLKeyboardEvent:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onKeyDown", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tldraw!ZoomTool#onKeyUp:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onKeyUp: " + }, + { + "kind": "Reference", + "text": "TLKeyboardEvent", + "canonicalReference": "@tldraw/editor!TLKeyboardEvent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onKeyUp", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "implementsTokenRanges": [] + } + ] + } + ] +} diff --git a/packages/tlschema/api/api.json b/packages/tlschema/api/api.json new file mode 100644 index 000000000..f1edee142 --- /dev/null +++ b/packages/tlschema/api/api.json @@ -0,0 +1,9462 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.35.4", + "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/tlschema!", + "docComment": "", + "name": "@tldraw/tlschema", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@tldraw/tlschema!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!ArrowShapeArrowheadEndStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ArrowShapeArrowheadEndStyle: " + }, + { + "kind": "Content", + "text": "import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLArrowShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "ArrowShapeArrowheadEndStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!ArrowShapeArrowheadStartStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ArrowShapeArrowheadStartStyle: " + }, + { + "kind": "Content", + "text": "import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLArrowShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "ArrowShapeArrowheadStartStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!arrowShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "arrowShapeProps: " + }, + { + "kind": "Content", + "text": "{\n labelColor: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n color: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n arrowheadStart: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">;\n arrowheadEnd: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">;\n font: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n start: " + }, + { + "kind": "Reference", + "text": "T.UnionValidator", + "canonicalReference": "@tldraw/validate!UnionValidator:class" + }, + { + "kind": "Content", + "text": "<\"type\", {\n binding: " + }, + { + "kind": "Reference", + "text": "T.ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"binding\";\n boundShapeId: import(\"..\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n normalizedAnchor: import(\"../misc/geometry-types\")." + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n isExact: boolean;\n }>;\n point: " + }, + { + "kind": "Reference", + "text": "T.ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"point\";\n x: number;\n y: number;\n }>;\n }, never>;\n end: " + }, + { + "kind": "Reference", + "text": "T.UnionValidator", + "canonicalReference": "@tldraw/validate!UnionValidator:class" + }, + { + "kind": "Content", + "text": "<\"type\", {\n binding: " + }, + { + "kind": "Reference", + "text": "T.ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"binding\";\n boundShapeId: import(\"..\")." + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n normalizedAnchor: import(\"../misc/geometry-types\")." + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n isExact: boolean;\n }>;\n point: " + }, + { + "kind": "Reference", + "text": "T.ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"point\";\n x: number;\n y: number;\n }>;\n }, never>;\n bend: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n text: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLArrowShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "arrowShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 42 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!assetIdValidator:var", + "docComment": "/**\n * A validator for asset record type Ids.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "assetIdValidator: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLAssetId", + "canonicalReference": "@tldraw/tlschema!TLAssetId:type" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/tlschema/src/assets/TLBaseAsset.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "assetIdValidator", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!AssetRecordType:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "AssetRecordType: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/store\")." + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLAsset", + "canonicalReference": "@tldraw/tlschema!TLAsset:type" + }, + { + "kind": "Content", + "text": ", \"props\" | \"type\">" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLAsset.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "AssetRecordType", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!bookmarkShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "bookmarkShapeProps: " + }, + { + "kind": "Content", + "text": "{\n w: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n assetId: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n url: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLBookmarkShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "bookmarkShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface", + "docComment": "/**\n * A serializable model for 2D boxes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface Box2dModel " + } + ], + "fileUrlPath": "packages/tlschema/src/misc/geometry-types.ts", + "releaseTag": "Public", + "name": "Box2dModel", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!Box2dModel#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 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!Box2dModel#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 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!Box2dModel#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/tlschema!Box2dModel#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": "Variable", + "canonicalReference": "@tldraw/tlschema!box2dModelValidator:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "box2dModelValidator: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/tlschema/src/misc/geometry-types.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "box2dModelValidator", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!CameraRecordType:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "CameraRecordType: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/store\")." + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLCamera", + "canonicalReference": "@tldraw/tlschema!TLCamera:interface" + }, + { + "kind": "Content", + "text": ", never>" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLCamera.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "CameraRecordType", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!canvasUiColorTypeValidator:var", + "docComment": "/**\n * A validator for the colors used by tldraw's default shapes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "canvasUiColorTypeValidator: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<\"accent\" | \"black\" | \"laser\" | \"muted-1\" | \"selection-fill\" | \"selection-stroke\" | \"white\">" + } + ], + "fileUrlPath": "packages/tlschema/src/misc/TLColor.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "canvasUiColorTypeValidator", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tlschema!createAssetValidator:function(1)", + "docComment": "/**\n * Create a validator for an asset record type.\n *\n * @param type - The type of the asset\n *\n * @param props - The validator for the asset's props\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function createAssetValidator(type: " + }, + { + "kind": "Content", + "text": "Type" + }, + { + "kind": "Content", + "text": ", props: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "T.ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "<{\n id: " + }, + { + "kind": "Reference", + "text": "TLAssetId", + "canonicalReference": "@tldraw/tlschema!TLAssetId:type" + }, + { + "kind": "Content", + "text": ";\n typeName: 'asset';\n type: Type;\n props: Props;\n meta: " + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/assets/TLBaseAsset.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 16 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "type", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "props", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Type", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Props", + "constraintTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "createAssetValidator" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!createPresenceStateDerivation:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "createPresenceStateDerivation: " + }, + { + "kind": "Content", + "text": "($user: " + }, + { + "kind": "Reference", + "text": "Signal", + "canonicalReference": "@tldraw/state!Signal:interface" + }, + { + "kind": "Content", + "text": "<{\n id: string;\n color: string;\n name: string;\n}>, instanceId?: " + }, + { + "kind": "Reference", + "text": "TLInstancePresence", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence:interface" + }, + { + "kind": "Content", + "text": "['id']) => (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": "" + } + ], + "fileUrlPath": "packages/tlschema/src/createPresenceStateDerivation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "createPresenceStateDerivation", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tlschema!createShapeId:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function createShapeId(id?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ], + "name": "createShapeId" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tlschema!createShapeValidator:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function createShapeValidator(type: " + }, + { + "kind": "Content", + "text": "Type" + }, + { + "kind": "Content", + "text": ", props?: " + }, + { + "kind": "Content", + "text": "{\n [K in keyof Props]: " + }, + { + "kind": "Reference", + "text": "T.Validatable", + "canonicalReference": "@tldraw/validate!Validatable:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ", meta?: " + }, + { + "kind": "Content", + "text": "{\n [K in keyof Meta]: " + }, + { + "kind": "Reference", + "text": "T.Validatable", + "canonicalReference": "@tldraw/validate!Validatable:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "T.ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLBaseShape.ts", + "returnTypeTokenRange": { + "startIndex": 17, + "endIndex": 21 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "type", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": false + }, + { + "parameterName": "props", + "parameterTypeTokenRange": { + "startIndex": 9, + "endIndex": 12 + }, + "isOptional": true + }, + { + "parameterName": "meta", + "parameterTypeTokenRange": { + "startIndex": 13, + "endIndex": 16 + }, + "isOptional": true + } + ], + "typeParameters": [ + { + "typeParameterName": "Type", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Props", + "constraintTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Meta", + "constraintTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "createShapeValidator" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tlschema!createTLSchema:function(1)", + "docComment": "/**\n * Create a TLSchema with custom shapes. Custom shapes cannot override default shapes.\n *\n * @param opts - Options\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function createTLSchema({ shapes }: " + }, + { + "kind": "Content", + "text": "{\n shapes: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "TLSchema", + "canonicalReference": "@tldraw/tlschema!TLSchema:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/createTLSchema.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "{ shapes }", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "createTLSchema" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!DefaultColorStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultColorStyle: " + }, + { + "kind": "Content", + "text": "import(\"./StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLColorStyle.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultColorStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!DefaultColorThemePalette:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultColorThemePalette: " + }, + { + "kind": "Content", + "text": "{\n lightMode: " + }, + { + "kind": "Reference", + "text": "TLDefaultColorTheme", + "canonicalReference": "@tldraw/tlschema!TLDefaultColorTheme:type" + }, + { + "kind": "Content", + "text": ";\n darkMode: " + }, + { + "kind": "Reference", + "text": "TLDefaultColorTheme", + "canonicalReference": "@tldraw/tlschema!TLDefaultColorTheme:type" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLColorStyle.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultColorThemePalette", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!DefaultDashStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultDashStyle: " + }, + { + "kind": "Content", + "text": "import(\"./StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLDashStyle.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultDashStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!DefaultFillStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultFillStyle: " + }, + { + "kind": "Content", + "text": "import(\"./StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLFillStyle.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultFillStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!DefaultFontFamilies:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultFontFamilies: " + }, + { + "kind": "Content", + "text": "{\n draw: string;\n sans: string;\n serif: string;\n mono: string;\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLFontStyle.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultFontFamilies", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!DefaultFontStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultFontStyle: " + }, + { + "kind": "Content", + "text": "import(\"./StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLFontStyle.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultFontStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!DefaultHorizontalAlignStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultHorizontalAlignStyle: " + }, + { + "kind": "Content", + "text": "import(\"./StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLHorizontalAlignStyle.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultHorizontalAlignStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!DefaultSizeStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultSizeStyle: " + }, + { + "kind": "Content", + "text": "import(\"./StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLSizeStyle.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultSizeStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!DefaultVerticalAlignStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DefaultVerticalAlignStyle: " + }, + { + "kind": "Content", + "text": "import(\"./StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end\" | \"middle\" | \"start\">" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLVerticalAlignStyle.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DefaultVerticalAlignStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!DocumentRecordType:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "DocumentRecordType: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/store\")." + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLDocument", + "canonicalReference": "@tldraw/tlschema!TLDocument:interface" + }, + { + "kind": "Content", + "text": ", never>" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLDocument.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "DocumentRecordType", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!drawShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "drawShapeProps: " + }, + { + "kind": "Content", + "text": "{\n color: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n segments: " + }, + { + "kind": "Reference", + "text": "T.ArrayOfValidator", + "canonicalReference": "@tldraw/validate!ArrayOfValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"free\" | \"straight\";\n points: import(\"../misc/geometry-types\")." + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": "[];\n }>;\n isComplete: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n isClosed: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n isPen: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLDrawShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "drawShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 20 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!EMBED_DEFINITIONS:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "EMBED_DEFINITIONS: " + }, + { + "kind": "Content", + "text": "readonly [{\n readonly type: \"tldraw\";\n readonly title: \"tldraw\";\n readonly hostnames: readonly [\"beta.tldraw.com\", \"tldraw.com\"];\n readonly minWidth: 300;\n readonly minHeight: 300;\n readonly width: 720;\n readonly height: 500;\n readonly doesResize: true;\n readonly canUnmount: true;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"figma\";\n readonly title: \"Figma\";\n readonly hostnames: readonly [\"figma.com\"];\n readonly width: 720;\n readonly height: 500;\n readonly doesResize: true;\n readonly canUnmount: true;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"google_maps\";\n readonly title: \"Google Maps\";\n readonly hostnames: readonly [\"google.*\"];\n readonly width: 720;\n readonly height: 500;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"val_town\";\n readonly title: \"Val Town\";\n readonly hostnames: readonly [\"val.town\"];\n readonly minWidth: 260;\n readonly minHeight: 100;\n readonly width: 720;\n readonly height: 500;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"codesandbox\";\n readonly title: \"CodeSandbox\";\n readonly hostnames: readonly [\"codesandbox.io\"];\n readonly minWidth: 300;\n readonly minHeight: 300;\n readonly width: 720;\n readonly height: 500;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"codepen\";\n readonly title: \"Codepen\";\n readonly hostnames: readonly [\"codepen.io\"];\n readonly minWidth: 300;\n readonly minHeight: 300;\n readonly width: 520;\n readonly height: 400;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"scratch\";\n readonly title: \"Scratch\";\n readonly hostnames: readonly [\"scratch.mit.edu\"];\n readonly width: 520;\n readonly height: 400;\n readonly doesResize: false;\n readonly canUnmount: false;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"youtube\";\n readonly title: \"YouTube\";\n readonly hostnames: readonly [\"*.youtube.com\", \"youtube.com\", \"youtu.be\"];\n readonly width: 800;\n readonly height: 450;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly overridePermissions: {\n readonly 'allow-presentation': true;\n };\n readonly isAspectRatioLocked: true;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"google_calendar\";\n readonly title: \"Google Calendar\";\n readonly hostnames: readonly [\"calendar.google.*\"];\n readonly width: 720;\n readonly height: 500;\n readonly minWidth: 460;\n readonly minHeight: 360;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly instructionLink: \"https://support.google.com/calendar/answer/41207?hl=en\";\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"google_slides\";\n readonly title: \"Google Slides\";\n readonly hostnames: readonly [\"docs.google.*\"];\n readonly width: 720;\n readonly height: 500;\n readonly minWidth: 460;\n readonly minHeight: 360;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"github_gist\";\n readonly title: \"GitHub Gist\";\n readonly hostnames: readonly [\"gist.github.com\"];\n readonly width: 720;\n readonly height: 500;\n readonly doesResize: true;\n readonly canUnmount: true;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"replit\";\n readonly title: \"Replit\";\n readonly hostnames: readonly [\"replit.com\"];\n readonly width: 720;\n readonly height: 500;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"felt\";\n readonly title: \"Felt\";\n readonly hostnames: readonly [\"felt.com\"];\n readonly width: 720;\n readonly height: 500;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"spotify\";\n readonly title: \"Spotify\";\n readonly hostnames: readonly [\"open.spotify.com\"];\n readonly width: 720;\n readonly height: 500;\n readonly minHeight: 500;\n readonly overrideOutlineRadius: 12;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"vimeo\";\n readonly title: \"Vimeo\";\n readonly hostnames: readonly [\"vimeo.com\", \"player.vimeo.com\"];\n readonly width: 640;\n readonly height: 360;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly isAspectRatioLocked: true;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"excalidraw\";\n readonly title: \"Excalidraw\";\n readonly hostnames: readonly [\"excalidraw.com\"];\n readonly width: 720;\n readonly height: 500;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly isAspectRatioLocked: true;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}, {\n readonly type: \"observable\";\n readonly title: \"Observable\";\n readonly hostnames: readonly [\"observablehq.com\"];\n readonly width: 720;\n readonly height: 500;\n readonly doesResize: true;\n readonly canUnmount: false;\n readonly isAspectRatioLocked: false;\n readonly backgroundColor: \"#fff\";\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}]" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLEmbedShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "EMBED_DEFINITIONS", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!EmbedDefinition:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type EmbedDefinition = " + }, + { + "kind": "Content", + "text": "{\n readonly type: string;\n readonly title: string;\n readonly hostnames: readonly string[];\n readonly minWidth?: number;\n readonly minHeight?: number;\n readonly width: number;\n readonly height: number;\n readonly doesResize: boolean;\n readonly canUnmount: boolean;\n readonly isAspectRatioLocked?: boolean;\n readonly overridePermissions?: " + }, + { + "kind": "Reference", + "text": "TLEmbedShapePermissions", + "canonicalReference": "@tldraw/tlschema!TLEmbedShapePermissions:type" + }, + { + "kind": "Content", + "text": ";\n readonly instructionLink?: string;\n readonly backgroundColor?: string;\n readonly overrideOutlineRadius?: number;\n readonly toEmbedUrl: (url: string) => string | undefined;\n readonly fromEmbedUrl: (url: string) => string | undefined;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLEmbedShape.ts", + "releaseTag": "Public", + "name": "EmbedDefinition", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!embedShapePermissionDefaults:var", + "docComment": "/**\n * Permissions with note inline from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "embedShapePermissionDefaults: " + }, + { + "kind": "Content", + "text": "{\n readonly 'allow-downloads-without-user-activation': false;\n readonly 'allow-downloads': false;\n readonly 'allow-modals': false;\n readonly 'allow-orientation-lock': false;\n readonly 'allow-pointer-lock': false;\n readonly 'allow-popups': true;\n readonly 'allow-popups-to-escape-sandbox': false;\n readonly 'allow-presentation': false;\n readonly 'allow-storage-access-by-user-activation': false;\n readonly 'allow-top-navigation': false;\n readonly 'allow-top-navigation-by-user-activation': false;\n readonly 'allow-scripts': true;\n readonly 'allow-same-origin': true;\n readonly 'allow-forms': true;\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLEmbedShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "embedShapePermissionDefaults", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!embedShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "embedShapeProps: " + }, + { + "kind": "Content", + "text": "{\n w: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n url: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLEmbedShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "embedShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + } + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class", + "docComment": "/**\n * See {@link StyleProp} & {@link StyleProp.defineEnum}\n *\n * @remarks\n *\n * The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `EnumStyleProp` class.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class EnumStyleProp extends " + }, + { + "kind": "Reference", + "text": "StyleProp", + "canonicalReference": "@tldraw/tlschema!StyleProp:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tlschema/src/styles/StyleProp.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "EnumStyleProp", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp#values:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly values: " + }, + { + "kind": "Content", + "text": "readonly T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "values", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!frameShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "frameShapeProps: " + }, + { + "kind": "Content", + "text": "{\n w: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n name: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLFrameShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "frameShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!GeoShapeGeoStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "GeoShapeGeoStyle: " + }, + { + "kind": "Content", + "text": "import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"check-box\" | \"cloud\" | \"diamond\" | \"ellipse\" | \"hexagon\" | \"octagon\" | \"oval\" | \"pentagon\" | \"rectangle\" | \"rhombus-2\" | \"rhombus\" | \"star\" | \"trapezoid\" | \"triangle\" | \"x-box\">" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLGeoShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "GeoShapeGeoStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!geoShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "geoShapeProps: " + }, + { + "kind": "Content", + "text": "{\n geo: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"check-box\" | \"cloud\" | \"diamond\" | \"ellipse\" | \"hexagon\" | \"octagon\" | \"oval\" | \"pentagon\" | \"rectangle\" | \"rhombus-2\" | \"rhombus\" | \"star\" | \"trapezoid\" | \"triangle\" | \"x-box\">;\n labelColor: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n color: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n verticalAlign: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end\" | \"middle\" | \"start\">;\n url: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n w: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n growY: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n text: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLGeoShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "geoShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 30 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tlschema!getDefaultColorTheme:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getDefaultColorTheme(opts: " + }, + { + "kind": "Content", + "text": "{\n isDarkMode: boolean;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "TLDefaultColorTheme", + "canonicalReference": "@tldraw/tlschema!TLDefaultColorTheme:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLColorStyle.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "opts", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "getDefaultColorTheme" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tlschema!getDefaultTranslationLocale:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getDefaultTranslationLocale(): " + }, + { + "kind": "Reference", + "text": "TLLanguage", + "canonicalReference": "@tldraw/tlschema!TLLanguage:type" + }, + { + "kind": "Content", + "text": "['locale']" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/translations/translations.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getDefaultTranslationLocale" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!highlightShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "highlightShapeProps: " + }, + { + "kind": "Content", + "text": "{\n color: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n segments: " + }, + { + "kind": "Reference", + "text": "T.ArrayOfValidator", + "canonicalReference": "@tldraw/validate!ArrayOfValidator:class" + }, + { + "kind": "Content", + "text": "<{\n type: \"free\" | \"straight\";\n points: import(\"..\")." + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": "[];\n }>;\n isComplete: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n isPen: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLHighlightShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "highlightShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 14 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!imageShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "imageShapeProps: " + }, + { + "kind": "Content", + "text": "{\n w: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n playing: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n url: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n assetId: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n crop: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<{\n topLeft: import(\"../misc/geometry-types\")." + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n bottomRight: import(\"../misc/geometry-types\")." + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ";\n } | null>;\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLImageShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "imageShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 20 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!InstancePageStateRecordType:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "InstancePageStateRecordType: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/store\")." + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLInstancePageState", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState:interface" + }, + { + "kind": "Content", + "text": ", \"pageId\">" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLPageState.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "InstancePageStateRecordType", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!InstancePresenceRecordType:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "InstancePresenceRecordType: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/store\")." + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLInstancePresence", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence:interface" + }, + { + "kind": "Content", + "text": ", \"currentPageId\" | \"userId\" | \"userName\">" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLPresence.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "InstancePresenceRecordType", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tlschema!isPageId:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isPageId(id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "id", + "canonicalReference": "@tldraw/tlschema!~id" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "TLPageId", + "canonicalReference": "@tldraw/tlschema!TLPageId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLPage.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isPageId" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tlschema!isShape:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isShape(record?: " + }, + { + "kind": "Reference", + "text": "UnknownRecord", + "canonicalReference": "@tldraw/store!UnknownRecord:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "record", + "canonicalReference": "@tldraw/tlschema!~record" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "record", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ], + "name": "isShape" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/tlschema!isShapeId:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isShapeId(id?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "id", + "canonicalReference": "@tldraw/tlschema!~id" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ], + "name": "isShapeId" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!LANGUAGES:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "LANGUAGES: " + }, + { + "kind": "Content", + "text": "readonly [{\n readonly locale: \"ar\";\n readonly label: \"عربي\";\n}, {\n readonly locale: \"ca\";\n readonly label: \"Català\";\n}, {\n readonly locale: \"da\";\n readonly label: \"Danish\";\n}, {\n readonly locale: \"de\";\n readonly label: \"Deutsch\";\n}, {\n readonly locale: \"en\";\n readonly label: \"English\";\n}, {\n readonly locale: \"es\";\n readonly label: \"Español\";\n}, {\n readonly locale: \"fa\";\n readonly label: \"فارسی\";\n}, {\n readonly locale: \"fi\";\n readonly label: \"Suomi\";\n}, {\n readonly locale: \"fr\";\n readonly label: \"Français\";\n}, {\n readonly locale: \"gl\";\n readonly label: \"Galego\";\n}, {\n readonly locale: \"he\";\n readonly label: \"עברית\";\n}, {\n readonly locale: \"it\";\n readonly label: \"Italiano\";\n}, {\n readonly locale: \"ja\";\n readonly label: \"日本語\";\n}, {\n readonly locale: \"ko-kr\";\n readonly label: \"한국어\";\n}, {\n readonly locale: \"ku\";\n readonly label: \"کوردی\";\n}, {\n readonly locale: \"hi-in\";\n readonly label: \"हिन्दी\";\n}, {\n readonly locale: \"hu\";\n readonly label: \"Magyar\";\n}, {\n readonly locale: \"my\";\n readonly label: \"မြန်မာစာ\";\n}, {\n readonly locale: \"ne\";\n readonly label: \"नेपाली\";\n}, {\n readonly locale: \"no\";\n readonly label: \"Norwegian\";\n}, {\n readonly locale: \"pl\";\n readonly label: \"Polski\";\n}, {\n readonly locale: \"pt-br\";\n readonly label: \"Português - Brasil\";\n}, {\n readonly locale: \"pt-pt\";\n readonly label: \"Português - Europeu\";\n}, {\n readonly locale: \"ro\";\n readonly label: \"Română\";\n}, {\n readonly locale: \"ru\";\n readonly label: \"Russian\";\n}, {\n readonly locale: \"sv\";\n readonly label: \"Svenska\";\n}, {\n readonly locale: \"te\";\n readonly label: \"తెలుగు\";\n}, {\n readonly locale: \"th\";\n readonly label: \"ภาษาไทย\";\n}, {\n readonly locale: \"tr\";\n readonly label: \"Türkçe\";\n}, {\n readonly locale: \"uk\";\n readonly label: \"Ukrainian\";\n}, {\n readonly locale: \"vi\";\n readonly label: \"Tiếng Việt\";\n}, {\n readonly locale: \"zh-cn\";\n readonly label: \"Chinese - Simplified\";\n}, {\n readonly locale: \"zh-tw\";\n readonly label: \"繁體中文 (台灣)\";\n}]" + } + ], + "fileUrlPath": "packages/tlschema/src/translations/languages.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "LANGUAGES", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!lineShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "lineShapeProps: " + }, + { + "kind": "Content", + "text": "{\n color: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n dash: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n spline: import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"cubic\" | \"line\">;\n handles: " + }, + { + "kind": "Reference", + "text": "T.DictValidator", + "canonicalReference": "@tldraw/validate!DictValidator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLLineShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "lineShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 14 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!LineShapeSplineStyle:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "LineShapeSplineStyle: " + }, + { + "kind": "Content", + "text": "import(\"../styles/StyleProp\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"cubic\" | \"line\">" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLLineShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "LineShapeSplineStyle", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!noteShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "noteShapeProps: " + }, + { + "kind": "Content", + "text": "{\n color: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n verticalAlign: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end\" | \"middle\" | \"start\">;\n growY: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n url: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n text: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLNoteShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "noteShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 18 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!PageRecordType:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "PageRecordType: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/store\")." + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLPage", + "canonicalReference": "@tldraw/tlschema!TLPage:interface" + }, + { + "kind": "Content", + "text": ", \"index\" | \"name\">" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLPage.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "PageRecordType", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!parentIdValidator:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "parentIdValidator: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLParentId", + "canonicalReference": "@tldraw/tlschema!TLParentId:type" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLBaseShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "parentIdValidator", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!PointerRecordType:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "PointerRecordType: " + }, + { + "kind": "Content", + "text": "import(\"@tldraw/store\")." + }, + { + "kind": "Reference", + "text": "RecordType", + "canonicalReference": "@tldraw/store!RecordType:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLPointer", + "canonicalReference": "@tldraw/tlschema!~TLPointer:interface" + }, + { + "kind": "Content", + "text": ", never>" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLPointer.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "PointerRecordType", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!SchemaShapeInfo:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type SchemaShapeInfo = " + }, + { + "kind": "Content", + "text": "{\n migrations?: " + }, + { + "kind": "Reference", + "text": "Migrations", + "canonicalReference": "@tldraw/store!Migrations:interface" + }, + { + "kind": "Content", + "text": ";\n props?: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": " any;\n }>;\n meta?: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": " any;\n }>;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/createTLSchema.ts", + "releaseTag": "Public", + "name": "SchemaShapeInfo", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 8 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!shapeIdValidator:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "shapeIdValidator: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLBaseShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "shapeIdValidator", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!ShapeProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type ShapeProps" + }, + { + "kind": "Content", + "text": "> = " + }, + { + "kind": "Content", + "text": "{\n [K in keyof Shape['props']]: " + }, + { + "kind": "Reference", + "text": "T.Validatable", + "canonicalReference": "@tldraw/validate!Validatable:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLBaseShape.ts", + "releaseTag": "Public", + "name": "ShapeProps", + "typeParameters": [ + { + "typeParameterName": "Shape", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 4, + "endIndex": 7 + } + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/tlschema!StyleProp:class", + "docComment": "/**\n * A `StyleProp` is a property of a shape that follows some special rules.\n *\n * 1. The same value can be set on lots of shapes at the same time.\n *\n * 2. The last used value is automatically saved and applied to new shapes.\n *\n * For example, {@link DefaultColorStyle} is a style prop used by tldraw's default shapes to set their color. If you try selecting several shapes on tldraw.com and changing their color, you'll see that the color is applied to all of them. Then, if you draw a new shape, it'll have the same color as the one you just set.\n *\n * You can use styles in your own shapes by either defining your own (see {@link StyleProp.define} and {@link StyleProp.defineEnum}) or using tldraw's default ones, like {@link DefaultColorStyle}. When you define a shape, pass a `props` object describing all of your shape's properties, using `StyleProp`s for the ones you want to be styles. See the {@link https://github.com/tldraw/tldraw/tree/main/apps/examples/src/16-custom-styles | custom styles example} for more.\n *\n * @remarks\n *\n * The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `StyleProp` class.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class StyleProp implements " + }, + { + "kind": "Reference", + "text": "T.Validatable", + "canonicalReference": "@tldraw/validate!Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tlschema/src/styles/StyleProp.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Type", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "StyleProp", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@tldraw/tlschema!StyleProp#defaultValue:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly defaultValue: " + }, + { + "kind": "Content", + "text": "Type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "defaultValue", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tlschema!StyleProp.define:member(1)", + "docComment": "/**\n * Define a new {@link StyleProp}.\n *\n * @param uniqueId - Each StyleProp must have a unique ID. We recommend you prefix this with your app/library name.\n *\n * @param options - - `defaultValue`: The default value for this style prop.\n *\n * - `type`: Optionally, describe what type of data you expect for this style prop.\n *\n * @example\n * ```ts\n * import {T} from '@tldraw/validate'\n * import {StyleProp} from '@tldraw/tlschema'\n *\n * const MyLineWidthProp = StyleProp.define('myApp:lineWidth', {\n * defaultValue: 1,\n * type: T.number,\n * })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static define(uniqueId: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", options: " + }, + { + "kind": "Content", + "text": "{\n defaultValue: Type;\n type?: " + }, + { + "kind": "Reference", + "text": "T.Validatable", + "canonicalReference": "@tldraw/validate!Validatable:type" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "StyleProp", + "canonicalReference": "@tldraw/tlschema!StyleProp:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "Type", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "uniqueId", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "define" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tlschema!StyleProp.defineEnum:member(1)", + "docComment": "/**\n * Define a new {@link StyleProp} as a list of possible values.\n *\n * @param uniqueId - Each StyleProp must have a unique ID. We recommend you prefix this with your app/library name.\n *\n * @param options - - `defaultValue`: The default value for this style prop.\n *\n * - `values`: An array of possible values of this style prop.\n *\n * @example\n * ```ts\n * import {StyleProp} from '@tldraw/tlschema'\n *\n * const MySizeProp = StyleProp.defineEnum('myApp:size', {\n * defaultValue: 'medium',\n * values: ['small', 'medium', 'large'],\n * })\n * ```\n *\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static defineEnum(uniqueId: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", options: " + }, + { + "kind": "Content", + "text": "{\n defaultValue: Values[number];\n values: Values;\n }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "Values", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "uniqueId", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "defineEnum" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tlschema!StyleProp#id:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/tlschema!StyleProp#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly type: " + }, + { + "kind": "Reference", + "text": "T.Validatable", + "canonicalReference": "@tldraw/validate!Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/tlschema!StyleProp#validate:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "validate(value: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "Type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "validate" + } + ], + "implementsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!textShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "textShapeProps: " + }, + { + "kind": "Content", + "text": "{\n color: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"..\")." + }, + { + "kind": "Reference", + "text": "EnumStyleProp", + "canonicalReference": "@tldraw/tlschema!EnumStyleProp:class" + }, + { + "kind": "Content", + "text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n w: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n text: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n scale: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n autoSize: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLTextShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "textShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 18 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!TL_CANVAS_UI_COLOR_TYPES:var", + "docComment": "/**\n * The colors used by tldraw's default shapes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "TL_CANVAS_UI_COLOR_TYPES: " + }, + { + "kind": "Reference", + "text": "Set", + "canonicalReference": "!Set:interface" + }, + { + "kind": "Content", + "text": "<\"accent\" | \"black\" | \"laser\" | \"muted-1\" | \"selection-fill\" | \"selection-stroke\" | \"white\">" + } + ], + "fileUrlPath": "packages/tlschema/src/misc/TLColor.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "TL_CANVAS_UI_COLOR_TYPES", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLArrowShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'arrow', " + }, + { + "kind": "Reference", + "text": "TLArrowShapeProps", + "canonicalReference": "@tldraw/tlschema!TLArrowShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLArrowShape.ts", + "releaseTag": "Public", + "name": "TLArrowShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLArrowShapeArrowheadStyle:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLArrowShapeArrowheadStyle = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLArrowShape.ts", + "releaseTag": "Public", + "name": "TLArrowShapeArrowheadStyle", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLArrowShapeProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLArrowShapeProps = " + }, + { + "kind": "Reference", + "text": "ShapePropsType", + "canonicalReference": "@tldraw/tlschema!~ShapePropsType:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLArrowShape.ts", + "releaseTag": "Public", + "name": "TLArrowShapeProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLArrowShapeTerminal:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLArrowShapeTerminal = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLArrowShape.ts", + "releaseTag": "Public", + "name": "TLArrowShapeTerminal", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLAsset:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLAsset = " + }, + { + "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": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLAsset.ts", + "releaseTag": "Public", + "name": "TLAsset", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLAssetId:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLAssetId = " + }, + { + "kind": "Reference", + "text": "RecordId", + "canonicalReference": "@tldraw/store!RecordId:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLBaseAsset", + "canonicalReference": "@tldraw/tlschema!TLBaseAsset:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLAsset.ts", + "releaseTag": "Public", + "name": "TLAssetId", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLAssetPartial:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLAssetPartial = " + }, + { + "kind": "Content", + "text": "T extends T ? {\n id: " + }, + { + "kind": "Reference", + "text": "TLAssetId", + "canonicalReference": "@tldraw/tlschema!TLAssetId:type" + }, + { + "kind": "Content", + "text": ";\n type: T['type'];\n props?: " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": ";\n meta?: " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": ";\n} & " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Omit", + "canonicalReference": "!Omit:type" + }, + { + "kind": "Content", + "text": "> : never" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLAsset.ts", + "releaseTag": "Public", + "name": "TLAssetPartial", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeTokenRange": { + "startIndex": 5, + "endIndex": 16 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLAssetShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLAssetShape = " + }, + { + "kind": "Reference", + "text": "Extract", + "canonicalReference": "!Extract:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": ", {\n props: {\n assetId: " + }, + { + "kind": "Reference", + "text": "TLAssetId", + "canonicalReference": "@tldraw/tlschema!TLAssetId:type" + }, + { + "kind": "Content", + "text": ";\n };\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLAsset.ts", + "releaseTag": "Public", + "name": "TLAssetShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!TLBaseAsset:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLBaseAsset extends " + }, + { + "kind": "Reference", + "text": "BaseRecord", + "canonicalReference": "@tldraw/store!BaseRecord:interface" + }, + { + "kind": "Content", + "text": "<'asset', " + }, + { + "kind": "Reference", + "text": "TLAssetId", + "canonicalReference": "@tldraw/tlschema!TLAssetId:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tlschema/src/assets/TLBaseAsset.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Type", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Props", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "TLBaseAsset", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseAsset#meta:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "meta: " + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "meta", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseAsset#props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "props: " + }, + { + "kind": "Content", + "text": "Props" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseAsset#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Content", + "text": "Type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 3, + "endIndex": 7 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLBaseShape extends " + }, + { + "kind": "Reference", + "text": "BaseRecord", + "canonicalReference": "@tldraw/store!BaseRecord:interface" + }, + { + "kind": "Content", + "text": "<'shape', " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLBaseShape.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Type", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Props", + "constraintTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "TLBaseShape", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseShape#index:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "index: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "index", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseShape#isLocked:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isLocked: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isLocked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseShape#meta:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "meta: " + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "meta", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseShape#opacity:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "opacity: " + }, + { + "kind": "Reference", + "text": "TLOpacityType", + "canonicalReference": "@tldraw/tlschema!TLOpacityType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "opacity", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseShape#parentId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "parentId: " + }, + { + "kind": "Reference", + "text": "TLParentId", + "canonicalReference": "@tldraw/tlschema!TLParentId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "parentId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseShape#props:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "props: " + }, + { + "kind": "Content", + "text": "Props" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "props", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseShape#rotation:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "rotation: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "rotation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseShape#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Content", + "text": "Type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLBaseShape#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/tlschema!TLBaseShape#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": [ + { + "startIndex": 5, + "endIndex": 9 + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLBookmarkAsset:type", + "docComment": "/**\n * An asset used for URL bookmarks, used by the TLBookmarkShape.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLBookmarkAsset = " + }, + { + "kind": "Reference", + "text": "TLBaseAsset", + "canonicalReference": "@tldraw/tlschema!TLBaseAsset:interface" + }, + { + "kind": "Content", + "text": "<'bookmark', {\n title: string;\n description: string;\n image: string;\n src: null | string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/assets/TLBookmarkAsset.ts", + "releaseTag": "Public", + "name": "TLBookmarkAsset", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLBookmarkShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'bookmark', " + }, + { + "kind": "Reference", + "text": "TLBookmarkShapeProps", + "canonicalReference": "@tldraw/tlschema!~TLBookmarkShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLBookmarkShape.ts", + "releaseTag": "Public", + "name": "TLBookmarkShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!TLCamera:interface", + "docComment": "/**\n * A camera record.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLCamera extends " + }, + { + "kind": "Reference", + "text": "BaseRecord", + "canonicalReference": "@tldraw/store!BaseRecord:interface" + }, + { + "kind": "Content", + "text": "<'camera', " + }, + { + "kind": "Reference", + "text": "TLCameraId", + "canonicalReference": "@tldraw/tlschema!TLCameraId:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLCamera.ts", + "releaseTag": "Public", + "name": "TLCamera", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLCamera#meta:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "meta: " + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "meta", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLCamera#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/tlschema!TLCamera#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 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLCamera#z:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "z: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "z", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 5 + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLCameraId:type", + "docComment": "/**\n * The id of a camera record.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCameraId = " + }, + { + "kind": "Reference", + "text": "RecordId", + "canonicalReference": "@tldraw/store!RecordId:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLCamera", + "canonicalReference": "@tldraw/tlschema!TLCamera:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLCamera.ts", + "releaseTag": "Public", + "name": "TLCameraId", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLCanvasUiColor:type", + "docComment": "/**\n * A type for the colors used by tldraw's default shapes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCanvasUiColor = " + }, + { + "kind": "Reference", + "text": "SetValue", + "canonicalReference": "@tldraw/tlschema!~SetValue:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/misc/TLColor.ts", + "releaseTag": "Public", + "name": "TLCanvasUiColor", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!TLCursor:interface", + "docComment": "/**\n * A cursor used by tldraw.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLCursor " + } + ], + "fileUrlPath": "packages/tlschema/src/misc/TLCursor.ts", + "releaseTag": "Public", + "name": "TLCursor", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLCursor#rotation:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "rotation: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "rotation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLCursor#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "TLCursorType", + "canonicalReference": "@tldraw/tlschema!TLCursorType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLCursorType:type", + "docComment": "/**\n * A type for the cursor types used by tldraw's default shapes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLCursorType = " + }, + { + "kind": "Reference", + "text": "SetValue", + "canonicalReference": "@tldraw/tlschema!~SetValue:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/misc/TLCursor.ts", + "releaseTag": "Public", + "name": "TLCursorType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDefaultColorStyle:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDefaultColorStyle = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLColorStyle.ts", + "releaseTag": "Public", + "name": "TLDefaultColorStyle", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDefaultColorTheme:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDefaultColorTheme = " + }, + { + "kind": "Reference", + "text": "Expand", + "canonicalReference": "@tldraw/utils!Expand:type" + }, + { + "kind": "Content", + "text": "<{\n id: 'dark' | 'light';\n text: string;\n background: string;\n solid: string;\n} & " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "<(typeof " + }, + { + "kind": "Reference", + "text": "colors", + "canonicalReference": "@tldraw/tlschema!~colors:var" + }, + { + "kind": "Content", + "text": ")[number], " + }, + { + "kind": "Reference", + "text": "TLDefaultColorThemeColor", + "canonicalReference": "@tldraw/tlschema!TLDefaultColorThemeColor:type" + }, + { + "kind": "Content", + "text": ">>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLColorStyle.ts", + "releaseTag": "Public", + "name": "TLDefaultColorTheme", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 9 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDefaultColorThemeColor:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDefaultColorThemeColor = " + }, + { + "kind": "Content", + "text": "{\n solid: string;\n semi: string;\n pattern: string;\n highlight: {\n srgb: string;\n p3: string;\n };\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLColorStyle.ts", + "releaseTag": "Public", + "name": "TLDefaultColorThemeColor", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDefaultDashStyle:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDefaultDashStyle = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLDashStyle.ts", + "releaseTag": "Public", + "name": "TLDefaultDashStyle", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDefaultFillStyle:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDefaultFillStyle = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLFillStyle.ts", + "releaseTag": "Public", + "name": "TLDefaultFillStyle", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDefaultFontStyle:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDefaultFontStyle = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLFontStyle.ts", + "releaseTag": "Public", + "name": "TLDefaultFontStyle", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDefaultHorizontalAlignStyle:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDefaultHorizontalAlignStyle = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLHorizontalAlignStyle.ts", + "releaseTag": "Public", + "name": "TLDefaultHorizontalAlignStyle", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDefaultShape:type", + "docComment": "/**\n * The default set of shapes that are available in the editor.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDefaultShape = " + }, + { + "kind": "Reference", + "text": "TLArrowShape", + "canonicalReference": "@tldraw/tlschema!TLArrowShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLBookmarkShape", + "canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLDrawShape", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLEmbedShape", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLFrameShape", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLGeoShape", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLGroupShape", + "canonicalReference": "@tldraw/tlschema!TLGroupShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLHighlightShape", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLImageShape", + "canonicalReference": "@tldraw/tlschema!TLImageShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLLineShape", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLNoteShape", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLTextShape", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLVideoShape", + "canonicalReference": "@tldraw/tlschema!TLVideoShape:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "releaseTag": "Public", + "name": "TLDefaultShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 26 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDefaultSizeStyle:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDefaultSizeStyle = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLSizeStyle.ts", + "releaseTag": "Public", + "name": "TLDefaultSizeStyle", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDefaultVerticalAlignStyle:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDefaultVerticalAlignStyle = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/styles/TLVerticalAlignStyle.ts", + "releaseTag": "Public", + "name": "TLDefaultVerticalAlignStyle", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!TLDOCUMENT_ID:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "TLDOCUMENT_ID: " + }, + { + "kind": "Reference", + "text": "RecordId", + "canonicalReference": "@tldraw/store!RecordId:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLDocument", + "canonicalReference": "@tldraw/tlschema!TLDocument:interface" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLDocument.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "TLDOCUMENT_ID", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!TLDocument:interface", + "docComment": "/**\n * TLDocument\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLDocument extends " + }, + { + "kind": "Reference", + "text": "BaseRecord", + "canonicalReference": "@tldraw/store!BaseRecord:interface" + }, + { + "kind": "Content", + "text": "<'document', " + }, + { + "kind": "Reference", + "text": "RecordId", + "canonicalReference": "@tldraw/store!RecordId:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLDocument", + "canonicalReference": "@tldraw/tlschema!TLDocument:interface" + }, + { + "kind": "Content", + "text": ">>" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLDocument.ts", + "releaseTag": "Public", + "name": "TLDocument", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLDocument#gridSize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "gridSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "gridSize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLDocument#meta:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "meta: " + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "meta", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLDocument#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 7 + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDrawShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDrawShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'draw', " + }, + { + "kind": "Reference", + "text": "TLDrawShapeProps", + "canonicalReference": "@tldraw/tlschema!~TLDrawShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLDrawShape.ts", + "releaseTag": "Public", + "name": "TLDrawShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLDrawShapeSegment:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLDrawShapeSegment = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLDrawShape.ts", + "releaseTag": "Public", + "name": "TLDrawShapeSegment", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLEmbedShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLEmbedShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'embed', " + }, + { + "kind": "Reference", + "text": "TLEmbedShapeProps", + "canonicalReference": "@tldraw/tlschema!~TLEmbedShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLEmbedShape.ts", + "releaseTag": "Public", + "name": "TLEmbedShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLEmbedShapePermissions:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLEmbedShapePermissions = " + }, + { + "kind": "Content", + "text": "{\n [K in keyof typeof " + }, + { + "kind": "Reference", + "text": "embedShapePermissionDefaults", + "canonicalReference": "@tldraw/tlschema!embedShapePermissionDefaults:var" + }, + { + "kind": "Content", + "text": "]?: boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLEmbedShape.ts", + "releaseTag": "Public", + "name": "TLEmbedShapePermissions", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLFrameShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLFrameShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'frame', " + }, + { + "kind": "Reference", + "text": "TLFrameShapeProps", + "canonicalReference": "@tldraw/tlschema!~TLFrameShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLFrameShape.ts", + "releaseTag": "Public", + "name": "TLFrameShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLGeoShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLGeoShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'geo', " + }, + { + "kind": "Reference", + "text": "TLGeoShapeProps", + "canonicalReference": "@tldraw/tlschema!~TLGeoShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLGeoShape.ts", + "releaseTag": "Public", + "name": "TLGeoShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLGroupShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLGroupShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'group', " + }, + { + "kind": "Reference", + "text": "TLGroupShapeProps", + "canonicalReference": "@tldraw/tlschema!~TLGroupShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLGroupShape.ts", + "releaseTag": "Public", + "name": "TLGroupShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!TLHandle:interface", + "docComment": "/**\n * A base interface for a shape's handles.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLHandle " + } + ], + "fileUrlPath": "packages/tlschema/src/misc/TLHandle.ts", + "releaseTag": "Public", + "name": "TLHandle", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLHandle#canBind:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canBind?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "canBind", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLHandle#canSnap:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canSnap?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "canSnap", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLHandle#id:member", + "docComment": "/**\n * A unique identifier for the handle.\n */\n", + "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/tlschema!TLHandle#index:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "index: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "index", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLHandle#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "TLHandleType", + "canonicalReference": "@tldraw/tlschema!TLHandleType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLHandle#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/tlschema!TLHandle#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": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLHandleType:type", + "docComment": "/**\n * A type for the handle types used by tldraw's default shapes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLHandleType = " + }, + { + "kind": "Reference", + "text": "SetValue", + "canonicalReference": "@tldraw/tlschema!~SetValue:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/misc/TLHandle.ts", + "releaseTag": "Public", + "name": "TLHandleType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLHighlightShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLHighlightShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'highlight', " + }, + { + "kind": "Reference", + "text": "TLHighlightShapeProps", + "canonicalReference": "@tldraw/tlschema!~TLHighlightShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLHighlightShape.ts", + "releaseTag": "Public", + "name": "TLHighlightShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLImageAsset:type", + "docComment": "/**\n * An asset for images such as PNGs and JPEGs, used by the TLImageShape.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLImageAsset = " + }, + { + "kind": "Reference", + "text": "TLBaseAsset", + "canonicalReference": "@tldraw/tlschema!TLBaseAsset:interface" + }, + { + "kind": "Content", + "text": "<'image', {\n w: number;\n h: number;\n name: string;\n isAnimated: boolean;\n mimeType: null | string;\n src: null | string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/assets/TLImageAsset.ts", + "releaseTag": "Public", + "name": "TLImageAsset", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLImageShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLImageShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'image', " + }, + { + "kind": "Reference", + "text": "TLImageShapeProps", + "canonicalReference": "@tldraw/tlschema!TLImageShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLImageShape.ts", + "releaseTag": "Public", + "name": "TLImageShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLImageShapeCrop:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLImageShapeCrop = " + }, + { + "kind": "Reference", + "text": "T.TypeOf", + "canonicalReference": "@tldraw/validate!TypeOf:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLImageShape.ts", + "releaseTag": "Public", + "name": "TLImageShapeCrop", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLImageShapeProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLImageShapeProps = " + }, + { + "kind": "Reference", + "text": "ShapePropsType", + "canonicalReference": "@tldraw/tlschema!~ShapePropsType:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLImageShape.ts", + "releaseTag": "Public", + "name": "TLImageShapeProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!TLINSTANCE_ID:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "TLINSTANCE_ID: " + }, + { + "kind": "Reference", + "text": "TLInstanceId", + "canonicalReference": "@tldraw/tlschema!TLInstanceId:type" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLInstance.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "TLINSTANCE_ID", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!TLInstance:interface", + "docComment": "/**\n * TLInstance\n *\n * State that is particular to a single browser tab\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLInstance extends " + }, + { + "kind": "Reference", + "text": "BaseRecord", + "canonicalReference": "@tldraw/store!BaseRecord:interface" + }, + { + "kind": "Content", + "text": "<'instance', " + }, + { + "kind": "Reference", + "text": "TLInstanceId", + "canonicalReference": "@tldraw/tlschema!TLInstanceId:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLInstance.ts", + "releaseTag": "Public", + "name": "TLInstance", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#brush:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "brush: " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "brush", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#canMoveCamera:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "canMoveCamera: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "canMoveCamera", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#chatMessage:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "chatMessage: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "chatMessage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#currentPageId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "currentPageId: " + }, + { + "kind": "Reference", + "text": "TLPageId", + "canonicalReference": "@tldraw/tlschema!TLPageId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "currentPageId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#cursor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "cursor: " + }, + { + "kind": "Reference", + "text": "TLCursor", + "canonicalReference": "@tldraw/tlschema!TLCursor:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "cursor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#devicePixelRatio:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "devicePixelRatio: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "devicePixelRatio", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#exportBackground:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "exportBackground: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "exportBackground", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#followingUserId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "followingUserId: " + }, + { + "kind": "Content", + "text": "null | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "followingUserId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#highlightedUserIds:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "highlightedUserIds: " + }, + { + "kind": "Content", + "text": "string[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "highlightedUserIds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#isChangingStyle:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isChangingStyle: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isChangingStyle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#isChatting:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isChatting: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isChatting", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#isCoarsePointer:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isCoarsePointer: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isCoarsePointer", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#isDebugMode:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isDebugMode: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isDebugMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#isFocused:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isFocused: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isFocused", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#isFocusMode:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isFocusMode: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isFocusMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#isGridMode:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isGridMode: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isGridMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#isPenMode:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isPenMode: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isPenMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#isReadonly:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isReadonly: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isReadonly", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#isToolLocked:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isToolLocked: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "isToolLocked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#meta:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "meta: " + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "meta", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#opacityForNextShape:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "opacityForNextShape: " + }, + { + "kind": "Reference", + "text": "TLOpacityType", + "canonicalReference": "@tldraw/tlschema!TLOpacityType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "opacityForNextShape", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#openMenus:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "openMenus: " + }, + { + "kind": "Content", + "text": "string[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "openMenus", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#screenBounds:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "screenBounds: " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "screenBounds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#scribble:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "scribble: " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLScribble", + "canonicalReference": "@tldraw/tlschema!TLScribble:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "scribble", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#stylesForNextShape:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "stylesForNextShape: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "stylesForNextShape", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstance#zoomBrush:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "zoomBrush: " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "zoomBrush", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 5 + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLInstanceId:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLInstanceId = " + }, + { + "kind": "Reference", + "text": "RecordId", + "canonicalReference": "@tldraw/store!RecordId:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLInstance", + "canonicalReference": "@tldraw/tlschema!TLInstance:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLInstance.ts", + "releaseTag": "Public", + "name": "TLInstanceId", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState:interface", + "docComment": "/**\n * TLInstancePageState\n *\n * State that is unique to a particular page of the document in a particular browser tab\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLInstancePageState extends " + }, + { + "kind": "Reference", + "text": "BaseRecord", + "canonicalReference": "@tldraw/store!BaseRecord:interface" + }, + { + "kind": "Content", + "text": "<'instance_page_state', " + }, + { + "kind": "Reference", + "text": "TLInstancePageStateId", + "canonicalReference": "@tldraw/tlschema!~TLInstancePageStateId:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLPageState.ts", + "releaseTag": "Public", + "name": "TLInstancePageState", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState#croppingShapeId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "croppingShapeId: " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "croppingShapeId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState#editingShapeId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "editingShapeId: " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "editingShapeId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState#erasingShapeIds:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "erasingShapeIds: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "erasingShapeIds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState#focusedGroupId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "focusedGroupId: " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "focusedGroupId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState#hintingShapeIds:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hintingShapeIds: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hintingShapeIds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState#hoveredShapeId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hoveredShapeId: " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "hoveredShapeId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState#meta:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "meta: " + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "meta", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState#pageId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "pageId: " + }, + { + "kind": "Reference", + "text": "RecordId", + "canonicalReference": "@tldraw/store!RecordId:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLPage", + "canonicalReference": "@tldraw/tlschema!TLPage:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "pageId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState#selectedShapeIds:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedShapeIds: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "selectedShapeIds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 5 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence:interface", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLInstancePresence extends " + }, + { + "kind": "Reference", + "text": "BaseRecord", + "canonicalReference": "@tldraw/store!BaseRecord:interface" + }, + { + "kind": "Content", + "text": "<'instance_presence', " + }, + { + "kind": "Reference", + "text": "TLInstancePresenceID", + "canonicalReference": "@tldraw/tlschema!~TLInstancePresenceID:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLPresence.ts", + "releaseTag": "Public", + "name": "TLInstancePresence", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#brush:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "brush: " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "brush", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#camera:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "camera: " + }, + { + "kind": "Content", + "text": "{\n x: number;\n y: number;\n z: number;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "camera", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#chatMessage:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "chatMessage: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "chatMessage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#color:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "color: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "color", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#currentPageId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "currentPageId: " + }, + { + "kind": "Reference", + "text": "TLPageId", + "canonicalReference": "@tldraw/tlschema!TLPageId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "currentPageId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#cursor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "cursor: " + }, + { + "kind": "Content", + "text": "{\n x: number;\n y: number;\n type: " + }, + { + "kind": "Reference", + "text": "TLCursor", + "canonicalReference": "@tldraw/tlschema!TLCursor:interface" + }, + { + "kind": "Content", + "text": "['type'];\n rotation: number;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "cursor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#followingUserId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "followingUserId: " + }, + { + "kind": "Content", + "text": "null | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "followingUserId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#lastActivityTimestamp:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "lastActivityTimestamp: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "lastActivityTimestamp", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#meta:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "meta: " + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "meta", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#screenBounds:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "screenBounds: " + }, + { + "kind": "Reference", + "text": "Box2dModel", + "canonicalReference": "@tldraw/tlschema!Box2dModel:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "screenBounds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#scribble:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "scribble: " + }, + { + "kind": "Content", + "text": "null | " + }, + { + "kind": "Reference", + "text": "TLScribble", + "canonicalReference": "@tldraw/tlschema!TLScribble:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "scribble", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#selectedShapeIds:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedShapeIds: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "selectedShapeIds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#userId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "userId: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "userId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence#userName:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "userName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "userName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 5 + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLLanguage:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLLanguage = " + }, + { + "kind": "Content", + "text": "(typeof " + }, + { + "kind": "Reference", + "text": "LANGUAGES", + "canonicalReference": "@tldraw/tlschema!LANGUAGES:var" + }, + { + "kind": "Content", + "text": ")[number]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/translations/translations.ts", + "releaseTag": "Public", + "name": "TLLanguage", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLLineShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLLineShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'line', " + }, + { + "kind": "Reference", + "text": "TLLineShapeProps", + "canonicalReference": "@tldraw/tlschema!~TLLineShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLLineShape.ts", + "releaseTag": "Public", + "name": "TLLineShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLNoteShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLNoteShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'note', " + }, + { + "kind": "Reference", + "text": "TLNoteShapeProps", + "canonicalReference": "@tldraw/tlschema!~TLNoteShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLNoteShape.ts", + "releaseTag": "Public", + "name": "TLNoteShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLOpacityType:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLOpacityType = " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/misc/TLOpacity.ts", + "releaseTag": "Public", + "name": "TLOpacityType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!TLPage:interface", + "docComment": "/**\n * TLPage\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TLPage extends " + }, + { + "kind": "Reference", + "text": "BaseRecord", + "canonicalReference": "@tldraw/store!BaseRecord:interface" + }, + { + "kind": "Content", + "text": "<'page', " + }, + { + "kind": "Reference", + "text": "TLPageId", + "canonicalReference": "@tldraw/tlschema!TLPageId:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLPage.ts", + "releaseTag": "Public", + "name": "TLPage", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLPage#index:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "index: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "index", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLPage#meta:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "meta: " + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "meta", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!TLPage#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 5 + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLPageId:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLPageId = " + }, + { + "kind": "Reference", + "text": "RecordId", + "canonicalReference": "@tldraw/store!RecordId:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLPage", + "canonicalReference": "@tldraw/tlschema!TLPage:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLPage.ts", + "releaseTag": "Public", + "name": "TLPageId", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLParentId:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLParentId = " + }, + { + "kind": "Reference", + "text": "TLPageId", + "canonicalReference": "@tldraw/tlschema!TLPageId:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "releaseTag": "Public", + "name": "TLParentId", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!TLPOINTER_ID:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "TLPOINTER_ID: " + }, + { + "kind": "Reference", + "text": "TLPointerId", + "canonicalReference": "@tldraw/tlschema!~TLPointerId:type" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLPointer.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "TLPOINTER_ID", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLRecord:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLRecord = " + }, + { + "kind": "Reference", + "text": "TLAsset", + "canonicalReference": "@tldraw/tlschema!TLAsset:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLCamera", + "canonicalReference": "@tldraw/tlschema!TLCamera:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLDocument", + "canonicalReference": "@tldraw/tlschema!TLDocument:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLInstance", + "canonicalReference": "@tldraw/tlschema!TLInstance:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLInstancePageState", + "canonicalReference": "@tldraw/tlschema!TLInstancePageState:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLInstancePresence", + "canonicalReference": "@tldraw/tlschema!TLInstancePresence:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLPage", + "canonicalReference": "@tldraw/tlschema!TLPage:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLPointer", + "canonicalReference": "@tldraw/tlschema!~TLPointer:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLShape", + "canonicalReference": "@tldraw/tlschema!TLShape:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLRecord.ts", + "releaseTag": "Public", + "name": "TLRecord", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 18 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLSchema:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLSchema = " + }, + { + "kind": "Reference", + "text": "StoreSchema", + "canonicalReference": "@tldraw/store!StoreSchema:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TLStoreProps", + "canonicalReference": "@tldraw/tlschema!TLStoreProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/createTLSchema.ts", + "releaseTag": "Public", + "name": "TLSchema", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLScribble:type", + "docComment": "/**\n * A type for the scribble used by tldraw.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLScribble = " + }, + { + "kind": "Content", + "text": "{\n points: " + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": "[];\n size: number;\n color: " + }, + { + "kind": "Reference", + "text": "TLCanvasUiColor", + "canonicalReference": "@tldraw/tlschema!TLCanvasUiColor:type" + }, + { + "kind": "Content", + "text": ";\n opacity: number;\n state: " + }, + { + "kind": "Reference", + "text": "SetValue", + "canonicalReference": "@tldraw/tlschema!~SetValue:type" + }, + { + "kind": "Content", + "text": ";\n delay: number;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/misc/TLScribble.ts", + "releaseTag": "Public", + "name": "TLScribble", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 10 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLSerializedStore:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLSerializedStore = " + }, + { + "kind": "Reference", + "text": "SerializedStore", + "canonicalReference": "@tldraw/store!SerializedStore:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/TLStore.ts", + "releaseTag": "Public", + "name": "TLSerializedStore", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLShape:type", + "docComment": "/**\n * The set of all shapes that are available in the editor, including unknown shapes.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLShape = " + }, + { + "kind": "Reference", + "text": "TLDefaultShape", + "canonicalReference": "@tldraw/tlschema!TLDefaultShape:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TLUnknownShape", + "canonicalReference": "@tldraw/tlschema!TLUnknownShape:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "releaseTag": "Public", + "name": "TLShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLShapeId = " + }, + { + "kind": "Reference", + "text": "RecordId", + "canonicalReference": "@tldraw/store!RecordId:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLUnknownShape", + "canonicalReference": "@tldraw/tlschema!TLUnknownShape:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "releaseTag": "Public", + "name": "TLShapeId", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLShapePartial:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLShapePartial = " + }, + { + "kind": "Content", + "text": "T extends T ? {\n id: " + }, + { + "kind": "Reference", + "text": "TLShapeId", + "canonicalReference": "@tldraw/tlschema!TLShapeId:type" + }, + { + "kind": "Content", + "text": ";\n type: T['type'];\n props?: " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": ";\n meta?: " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": ";\n} & " + }, + { + "kind": "Reference", + "text": "Partial", + "canonicalReference": "!Partial:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Omit", + "canonicalReference": "!Omit:type" + }, + { + "kind": "Content", + "text": "> : never" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "releaseTag": "Public", + "name": "TLShapePartial", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeTokenRange": { + "startIndex": 5, + "endIndex": 16 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLShapeProp:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLShapeProp = " + }, + { + "kind": "Content", + "text": "keyof " + }, + { + "kind": "Reference", + "text": "TLShapeProps", + "canonicalReference": "@tldraw/tlschema!TLShapeProps:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "releaseTag": "Public", + "name": "TLShapeProp", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLShapeProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLShapeProps = " + }, + { + "kind": "Reference", + "text": "Identity", + "canonicalReference": "@tldraw/tlschema!~Identity:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "UnionToIntersection", + "canonicalReference": "@tldraw/tlschema!~UnionToIntersection:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLDefaultShape", + "canonicalReference": "@tldraw/tlschema!TLDefaultShape:type" + }, + { + "kind": "Content", + "text": "['props']>>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "releaseTag": "Public", + "name": "TLShapeProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLStore:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLStore = " + }, + { + "kind": "Reference", + "text": "Store", + "canonicalReference": "@tldraw/store!Store:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TLStoreProps", + "canonicalReference": "@tldraw/tlschema!TLStoreProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/TLStore.ts", + "releaseTag": "Public", + "name": "TLStore", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLStoreProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLStoreProps = " + }, + { + "kind": "Content", + "text": "{\n defaultName: string;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/TLStore.ts", + "releaseTag": "Public", + "name": "TLStoreProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLStoreSchema:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLStoreSchema = " + }, + { + "kind": "Reference", + "text": "StoreSchema", + "canonicalReference": "@tldraw/store!StoreSchema:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TLStoreProps", + "canonicalReference": "@tldraw/tlschema!TLStoreProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/TLStore.ts", + "releaseTag": "Public", + "name": "TLStoreSchema", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLStoreSnapshot:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLStoreSnapshot = " + }, + { + "kind": "Reference", + "text": "StoreSnapshot", + "canonicalReference": "@tldraw/store!StoreSnapshot:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TLRecord", + "canonicalReference": "@tldraw/tlschema!TLRecord:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/TLStore.ts", + "releaseTag": "Public", + "name": "TLStoreSnapshot", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLTextShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLTextShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'text', " + }, + { + "kind": "Reference", + "text": "TLTextShapeProps", + "canonicalReference": "@tldraw/tlschema!TLTextShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLTextShape.ts", + "releaseTag": "Public", + "name": "TLTextShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLTextShapeProps:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLTextShapeProps = " + }, + { + "kind": "Reference", + "text": "ShapePropsType", + "canonicalReference": "@tldraw/tlschema!~ShapePropsType:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLTextShape.ts", + "releaseTag": "Public", + "name": "TLTextShapeProps", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLUnknownShape:type", + "docComment": "/**\n * A type for a shape that is available in the editor but whose type is unknown—either one of the editor's default shapes or else a custom shape.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLUnknownShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/records/TLShape.ts", + "releaseTag": "Public", + "name": "TLUnknownShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLVideoAsset:type", + "docComment": "/**\n * An asset used for videos, used by the TLVideoShape.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLVideoAsset = " + }, + { + "kind": "Reference", + "text": "TLBaseAsset", + "canonicalReference": "@tldraw/tlschema!TLBaseAsset:interface" + }, + { + "kind": "Content", + "text": "<'video', {\n w: number;\n h: number;\n name: string;\n isAnimated: boolean;\n mimeType: null | string;\n src: null | string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/assets/TLVideoAsset.ts", + "releaseTag": "Public", + "name": "TLVideoAsset", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/tlschema!TLVideoShape:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TLVideoShape = " + }, + { + "kind": "Reference", + "text": "TLBaseShape", + "canonicalReference": "@tldraw/tlschema!TLBaseShape:interface" + }, + { + "kind": "Content", + "text": "<'video', " + }, + { + "kind": "Reference", + "text": "TLVideoShapeProps", + "canonicalReference": "@tldraw/tlschema!~TLVideoShapeProps:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLVideoShape.ts", + "releaseTag": "Public", + "name": "TLVideoShape", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Interface", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface", + "docComment": "/**\n * A serializable model for 2D vectors.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface Vec2dModel " + } + ], + "fileUrlPath": "packages/tlschema/src/misc/geometry-types.ts", + "releaseTag": "Public", + "name": "Vec2dModel", + "preserveMemberOrder": false, + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!Vec2dModel#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/tlschema!Vec2dModel#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 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "@tldraw/tlschema!Vec2dModel#z:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "z?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": true, + "releaseTag": "Public", + "name": "z", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!vec2dModelValidator:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "vec2dModelValidator: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Vec2dModel", + "canonicalReference": "@tldraw/tlschema!Vec2dModel:interface" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/tlschema/src/misc/geometry-types.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "vec2dModelValidator", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/tlschema!videoShapeProps:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "videoShapeProps: " + }, + { + "kind": "Content", + "text": "{\n w: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n h: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n time: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n playing: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n url: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n assetId: " + }, + { + "kind": "Reference", + "text": "T.Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/tlschema/src/shapes/TLVideoShape.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "videoShapeProps", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 16 + } + } + ] + } + ] +} diff --git a/packages/utils/api/api.json b/packages/utils/api/api.json new file mode 100644 index 000000000..8c63f89a3 --- /dev/null +++ b/packages/utils/api/api.json @@ -0,0 +1,2445 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.35.4", + "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/utils!", + "docComment": "", + "name": "@tldraw/utils", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@tldraw/utils!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!debounce:function(1)", + "docComment": "/**\n * Debounce a function.\n *\n * @example\n * ```ts\n * const A = debounce(myFunction, 1000)\n * ```\n *\n * @see\n *\n * source - https://gist.github.com/ca0v/73a31f57b397606c9813472f7493a940\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function debounce(callback: " + }, + { + "kind": "Content", + "text": "(...args: T) => " + }, + { + "kind": "Reference", + "text": "PromiseLike", + "canonicalReference": "!PromiseLike:interface" + }, + { + "kind": "Content", + "text": " | U" + }, + { + "kind": "Content", + "text": ", wait: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{\n (...args: T): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": ";\n cancel(): void;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/debounce.ts", + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "wait", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "debounce" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!dedupe:function(1)", + "docComment": "/**\n * Deduplicate the items in an array\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function dedupe(input: " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ", equals?: " + }, + { + "kind": "Content", + "text": "(a: any, b: any) => boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/array.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "input", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "equals", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "dedupe" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!deepCopy:function(1)", + "docComment": "/**\n * Deep copy function for TypeScript.\n *\n * @param obj - Target value to be copied.\n *\n * @example\n * ```ts\n * const A = deepCopy({ a: 1, b: { c: 2 } })\n * ```\n *\n * @see\n *\n * Source - project, ts-deeply https://github.com/ykdr2017/ts-deepcopy\n *\n * @see\n *\n * Code - pen https://codepen.io/erikvullings/pen/ejyBYg\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function deepCopy(obj: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/object.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "obj", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "deepCopy" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/utils!ErrorResult:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type ErrorResult = " + }, + { + "kind": "Content", + "text": "{\n readonly ok: false;\n readonly error: E;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/control.ts", + "releaseTag": "Public", + "name": "ErrorResult", + "typeParameters": [ + { + "typeParameterName": "E", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/utils!Expand:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type Expand = " + }, + { + "kind": "Content", + "text": "T extends infer O ? {\n [K in keyof O]: O[K];\n} : never" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/types.ts", + "releaseTag": "Public", + "name": "Expand", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/utils!FileHelpers:class", + "docComment": "/**\n * Helpers for files\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class FileHelpers " + } + ], + "fileUrlPath": "packages/utils/src/lib/file.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "FileHelpers", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@tldraw/utils!FileHelpers.fileToBase64:member(1)", + "docComment": "/**\n * Convert a file to base64.\n *\n * @param value - The file as a blob.\n *\n * @example\n * ```ts\n * const A = fileToBase64('./test.png')\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fileToBase64(file: " + }, + { + "kind": "Reference", + "text": "Blob", + "canonicalReference": "!Blob:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "file", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "fileToBase64" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!getFirstFromIterable:function(1)", + "docComment": "/**\n * Get the first item from an iterable Set or Map.\n *\n * @param value - The iterable Set or Map.\n *\n * @example\n * ```ts\n * const A = getFirstItem(new Set([1, 2, 3])) // 1\n * const B = getFirstItem(\n * \tnew Map([\n * \t\t['a', 1],\n * \t\t['b', 2],\n * \t])\n * ) // 1\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getFirstFromIterable(set: " + }, + { + "kind": "Reference", + "text": "Map", + "canonicalReference": "!Map:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Set", + "canonicalReference": "!Set:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/iterable.ts", + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "set", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getFirstFromIterable" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!getHashForObject:function(1)", + "docComment": "/**\n * Hash a string using the FNV-1a algorithm.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getHashForObject(obj: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/hash.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "obj", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "getHashForObject" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!getHashForString:function(1)", + "docComment": "/**\n * Hash a string using the FNV-1a algorithm.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function getHashForString(string: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/hash.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "string", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "getHashForString" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!isDefined:function(1)", + "docComment": "/**\n * Get whether a value is not undefined.\n *\n * @param value - The value to check.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isDefined(value: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "value", + "canonicalReference": "@tldraw/utils!~value" + }, + { + "kind": "Content", + "text": " is typeof " + }, + { + "kind": "Reference", + "text": "value", + "canonicalReference": "@tldraw/utils!~value:var" + }, + { + "kind": "Content", + "text": " extends undefined ? never : T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/value.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "isDefined" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!isNonNull:function(1)", + "docComment": "/**\n * Get whether a value is null\n *\n * @param value - The value to check.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isNonNull(value: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "value", + "canonicalReference": "@tldraw/utils!~value" + }, + { + "kind": "Content", + "text": " is typeof " + }, + { + "kind": "Reference", + "text": "value", + "canonicalReference": "@tldraw/utils!~value:var" + }, + { + "kind": "Content", + "text": " extends null ? never : T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/value.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "isNonNull" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!isNonNullish:function(1)", + "docComment": "/**\n * Get whether a value is nullish (null, undefined).\n *\n * @param value - The value to check.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isNonNullish(value: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "value", + "canonicalReference": "@tldraw/utils!~value" + }, + { + "kind": "Content", + "text": " is typeof " + }, + { + "kind": "Reference", + "text": "value", + "canonicalReference": "@tldraw/utils!~value:var" + }, + { + "kind": "Content", + "text": " extends undefined ? never : typeof " + }, + { + "kind": "Reference", + "text": "value", + "canonicalReference": "@tldraw/utils!~value:var" + }, + { + "kind": "Content", + "text": " extends null ? never : T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/value.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "isNonNullish" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!isValidUrl:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isValidUrl(url: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/url.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "url", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isValidUrl" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/utils!JsonArray:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type JsonArray = " + }, + { + "kind": "Reference", + "text": "JsonValue", + "canonicalReference": "@tldraw/utils!JsonValue:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/json-value.ts", + "releaseTag": "Public", + "name": "JsonArray", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/utils!JsonObject:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type JsonObject = " + }, + { + "kind": "Content", + "text": "{\n [key: string]: " + }, + { + "kind": "Reference", + "text": "JsonValue", + "canonicalReference": "@tldraw/utils!JsonValue:type" + }, + { + "kind": "Content", + "text": " | undefined;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/json-value.ts", + "releaseTag": "Public", + "name": "JsonObject", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/utils!JsonPrimitive:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type JsonPrimitive = " + }, + { + "kind": "Content", + "text": "boolean | null | number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/json-value.ts", + "releaseTag": "Public", + "name": "JsonPrimitive", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/utils!JsonValue:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type JsonValue = " + }, + { + "kind": "Reference", + "text": "JsonArray", + "canonicalReference": "@tldraw/utils!JsonArray:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "JsonObject", + "canonicalReference": "@tldraw/utils!JsonObject:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "JsonPrimitive", + "canonicalReference": "@tldraw/utils!JsonPrimitive:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/json-value.ts", + "releaseTag": "Public", + "name": "JsonValue", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!lerp:function(1)", + "docComment": "/**\n * Linear interpolate between two values.\n *\n * @example\n * ```ts\n * const A = lerp(0, 1, 0.5)\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function lerp(a: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", b: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", t: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/number.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": "t", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "name": "lerp" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!lns:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function lns(str: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/hash.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "str", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "lns" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/utils!MediaHelpers:class", + "docComment": "/**\n * Helpers for media\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaHelpers " + } + ], + "fileUrlPath": "packages/utils/src/lib/media.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaHelpers", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@tldraw/utils!MediaHelpers.getImageSizeFromSrc:member(1)", + "docComment": "/**\n * Get the size of an image from its source.\n *\n * @param dataURL - The file as a string.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getImageSizeFromSrc(dataURL: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<{\n w: number;\n h: number;\n }>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "dataURL", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getImageSizeFromSrc" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/utils!MediaHelpers.getVideoSizeFromSrc:member(1)", + "docComment": "/**\n * Get the size of a video from its source.\n *\n * @param src - The source of the video.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getVideoSizeFromSrc(src: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<{\n w: number;\n h: number;\n }>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "src", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getVideoSizeFromSrc" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!modulate:function(1)", + "docComment": "/**\n * Modulate a value between two ranges.\n *\n * @param value - The interpolation value.\n *\n * @param rangeA - From [low, high]\n *\n * @param rangeB - To [low, high]\n *\n * @param clamp - Whether to clamp the the result to [low, high]\n *\n * @example\n * ```ts\n * const A = modulate(0, [0, 1], [0, 100])\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function modulate(value: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", rangeA: " + }, + { + "kind": "Content", + "text": "number[]" + }, + { + "kind": "Content", + "text": ", rangeB: " + }, + { + "kind": "Content", + "text": "number[]" + }, + { + "kind": "Content", + "text": ", clamp?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/number.ts", + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "rangeA", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "rangeB", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "clamp", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": true + } + ], + "name": "modulate" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/utils!OkResult:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type OkResult = " + }, + { + "kind": "Content", + "text": "{\n readonly ok: true;\n readonly value: T;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/control.ts", + "releaseTag": "Public", + "name": "OkResult", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/utils!PngHelpers:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class PngHelpers " + } + ], + "fileUrlPath": "packages/utils/src/lib/png.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "PngHelpers", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@tldraw/utils!PngHelpers.findChunk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static findChunk(view: " + }, + { + "kind": "Reference", + "text": "DataView", + "canonicalReference": "!DataView:interface" + }, + { + "kind": "Content", + "text": ", type: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{\n dataOffset: number;\n size: number;\n start: number;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "type", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "findChunk" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/utils!PngHelpers.getChunkType:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getChunkType(view: " + }, + { + "kind": "Reference", + "text": "DataView", + "canonicalReference": "!DataView:interface" + }, + { + "kind": "Content", + "text": ", offset: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "offset", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "getChunkType" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/utils!PngHelpers.isPng:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isPng(view: " + }, + { + "kind": "Reference", + "text": "DataView", + "canonicalReference": "!DataView:interface" + }, + { + "kind": "Content", + "text": ", offset: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "offset", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isPng" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/utils!PngHelpers.parsePhys:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static parsePhys(view: " + }, + { + "kind": "Reference", + "text": "DataView", + "canonicalReference": "!DataView:interface" + }, + { + "kind": "Content", + "text": ", offset: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{\n ppux: number;\n ppuy: number;\n unit: number;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "offset", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "parsePhys" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/utils!PngHelpers.readChunks:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static readChunks(view: " + }, + { + "kind": "Reference", + "text": "DataView", + "canonicalReference": "!DataView:interface" + }, + { + "kind": "Content", + "text": ", offset?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "offset", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "readChunks" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/utils!PngHelpers.setPhysChunk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static setPhysChunk(view: " + }, + { + "kind": "Reference", + "text": "DataView", + "canonicalReference": "!DataView:interface" + }, + { + "kind": "Content", + "text": ", dpr?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Reference", + "text": "BlobPropertyBag", + "canonicalReference": "!BlobPropertyBag:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Blob", + "canonicalReference": "!Blob:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "dpr", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "setPhysChunk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/utils!RecursivePartial:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type RecursivePartial = " + }, + { + "kind": "Content", + "text": "{\n [P in keyof T]?: " + }, + { + "kind": "Reference", + "text": "RecursivePartial", + "canonicalReference": "@tldraw/utils!RecursivePartial:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/types.ts", + "releaseTag": "Public", + "name": "RecursivePartial", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/utils!Result:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type Result = " + }, + { + "kind": "Reference", + "text": "ErrorResult", + "canonicalReference": "@tldraw/utils!ErrorResult:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "OkResult", + "canonicalReference": "@tldraw/utils!OkResult:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/control.ts", + "releaseTag": "Public", + "name": "Result", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "E", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/utils!Result:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Result: " + }, + { + "kind": "Content", + "text": "{\n ok(value: T): " + }, + { + "kind": "Reference", + "text": "OkResult", + "canonicalReference": "@tldraw/utils!OkResult:type" + }, + { + "kind": "Content", + "text": ";\n err(error: E): " + }, + { + "kind": "Reference", + "text": "ErrorResult", + "canonicalReference": "@tldraw/utils!ErrorResult:type" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "fileUrlPath": "packages/utils/src/lib/control.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "Result", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!rng:function(1)", + "docComment": "/**\n * Seeded random number generator, using [xorshift](https://en.wikipedia.org/wiki/Xorshift). The result will always be betweeen -1 and 1.\n *\n * Adapted from [seedrandom](https://github.com/davidbau/seedrandom).\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function rng(seed?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "() => number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/number.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "seed", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ], + "name": "rng" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!rotateArray:function(1)", + "docComment": "/**\n * Rotate the contents of an array.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function rotateArray(arr: " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ", offset: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/array.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "arr", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "offset", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "rotateArray" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!sortById:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function sortById(a: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ", b: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "-1 | 1" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/sort.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "a", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "b", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "sortById" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/utils!structuredClone_2:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "structuredClone: " + }, + { + "kind": "Content", + "text": "(i: T) => T" + } + ], + "fileUrlPath": "packages/utils/src/lib/value.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "structuredClone_2", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/utils!throttle:function(1)", + "docComment": "/**\n * Throttle a function.\n *\n * @example\n * ```ts\n * const A = throttle(myFunction, 1000)\n * ```\n *\n * @see\n *\n * source - https://github.com/bameyrick/throttle-typescript\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function throttle any" + }, + { + "kind": "Content", + "text": ">(func: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ", limit: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "(...args: " + }, + { + "kind": "Reference", + "text": "Parameters", + "canonicalReference": "!Parameters:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "ReturnType", + "canonicalReference": "!ReturnType:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/utils/src/lib/function.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "func", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "limit", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "throttle" + } + ] + } + ] +} diff --git a/packages/validate/api/api.json b/packages/validate/api/api.json new file mode 100644 index 000000000..6c1ccad06 --- /dev/null +++ b/packages/validate/api/api.json @@ -0,0 +1,4454 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.35.4", + "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/validate!", + "docComment": "", + "name": "@tldraw/validate", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@tldraw/validate!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!ArrayOfValidator:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class ArrayOfValidator extends " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "ArrayOfValidator", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!ArrayOfValidator:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `ArrayOfValidator` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(itemValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemValidator", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!ArrayOfValidator#itemValidator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly itemValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "itemValidator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!ArrayOfValidator#lengthGreaterThan1:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "lengthGreaterThan1(): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator: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": "lengthGreaterThan1" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!ArrayOfValidator#nonEmpty:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "nonEmpty(): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator: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": "nonEmpty" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!DictValidator:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class DictValidator extends " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Key", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "DictValidator", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!DictValidator:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `DictValidator` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(keyValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", valueValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "keyValidator", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + }, + { + "parameterName": "valueValidator", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + }, + "isOptional": false + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!DictValidator#keyValidator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly keyValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "keyValidator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!DictValidator#valueValidator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly valueValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "valueValidator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!ObjectValidator:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class ObjectValidator extends " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Shape", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "ObjectValidator", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!ObjectValidator:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `ObjectValidator` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(config: " + }, + { + "kind": "Content", + "text": "{\n readonly [K in keyof Shape]: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ", shouldAllowUnknownProperties?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "config", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "shouldAllowUnknownProperties", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!ObjectValidator#allowUnknownProperties:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "allowUnknownProperties(): " + }, + { + "kind": "Reference", + "text": "ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator: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": "allowUnknownProperties" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!ObjectValidator#config:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly config: " + }, + { + "kind": "Content", + "text": "{\n readonly [K in keyof Shape]: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "config", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!ObjectValidator#extend:member(1)", + "docComment": "/**\n * Extend an object validator by adding additional properties.\n *\n * @example\n * ```ts\n * const animalValidator = T.object({\n * \tname: T.string,\n * })\n * const catValidator = animalValidator.extend({\n * \tmeowVolume: T.number,\n * })\n * ```\n *\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "extend" + }, + { + "kind": "Content", + "text": ">(extension: " + }, + { + "kind": "Content", + "text": "{\n readonly [K in keyof Extension]: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "Extension", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 10 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "extension", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 7 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "extend" + } + ], + "extendsTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Namespace", + "canonicalReference": "@tldraw/validate!T:namespace", + "docComment": "", + "excerptTokens": [], + "fileUrlPath": "packages/validate/src/index.ts", + "releaseTag": "None", + "name": "T", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.any:var", + "docComment": "/**\n * Validation that accepts any value. Generally this should be avoided, but you can use it as an escape hatch if you want to work without validations for e.g. a prototype.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "any: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "any", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.array:var", + "docComment": "/**\n * Validates that a value is an array. To check the contents of the array, use T.arrayOf.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "array: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "array", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.arrayOf:function(1)", + "docComment": "/**\n * Validates that a value is an array whose contents matches the passed-in validator.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function arrayOf(itemValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ArrayOfValidator", + "canonicalReference": "@tldraw/validate!ArrayOfValidator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemValidator", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "arrayOf" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!T.ArrayOfValidator:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class ArrayOfValidator extends " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "ArrayOfValidator", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!T.ArrayOfValidator:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `ArrayOfValidator` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(itemValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemValidator", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!T.ArrayOfValidator#itemValidator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly itemValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "itemValidator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.ArrayOfValidator#lengthGreaterThan1:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "lengthGreaterThan1(): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator: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": "lengthGreaterThan1" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.ArrayOfValidator#nonEmpty:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "nonEmpty(): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator: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": "nonEmpty" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.bigint:var", + "docComment": "/**\n * Validates that a value is a bigint.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "bigint: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "bigint", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.boolean:var", + "docComment": "/**\n * Validates that a value is boolean.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "boolean: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "boolean", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.dict:function(1)", + "docComment": "/**\n * Validation that an option is a dict with particular keys and values.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function dict(keyValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", valueValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "DictValidator", + "canonicalReference": "@tldraw/validate!DictValidator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 11 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "keyValidator", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "valueValidator", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 8 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Key", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "dict" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!T.DictValidator:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class DictValidator extends " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Key", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Value", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "DictValidator", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!T.DictValidator:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `DictValidator` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(keyValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", valueValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "keyValidator", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + }, + { + "parameterName": "valueValidator", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + }, + "isOptional": false + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!T.DictValidator#keyValidator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly keyValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "keyValidator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!T.DictValidator#valueValidator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly valueValidator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "valueValidator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.integer:var", + "docComment": "/**\n * Fails if number is not an integer\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "integer: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "integer", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.jsonDict:function(1)", + "docComment": "/**\n * Validate an object has a particular shape.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function jsonDict(): " + }, + { + "kind": "Reference", + "text": "DictValidator", + "canonicalReference": "@tldraw/validate!DictValidator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "jsonDict" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.jsonValue:var", + "docComment": "/**\n * Validate that a value is valid JSON.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "jsonValue: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "JsonValue", + "canonicalReference": "@tldraw/utils!JsonValue:type" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "jsonValue", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.literal:function(1)", + "docComment": "/**\n * Validates that a value matches another that was passed in.\n *\n * @example\n * ```ts\n * const trueValidator = T.literal(true)\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function literal(expectedValue: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "expectedValue", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "literal" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.literalEnum:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function literalEnum(...values: " + }, + { + "kind": "Content", + "text": "Values" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "values", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Values", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "literalEnum" + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.model:function(1)", + "docComment": "/**\n * A named object with an ID. Errors will be reported as being part of the object with the given name.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function model(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", validator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "validator", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "model" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.nonZeroInteger:var", + "docComment": "/**\n * Fails if value \\<= 0 and is not an integer\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "nonZeroInteger: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "nonZeroInteger", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.nonZeroNumber:var", + "docComment": "/**\n * Fails if value \\<= 0\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "nonZeroNumber: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "nonZeroNumber", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.nullable:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function nullable(validator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "validator", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "nullable" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.number:var", + "docComment": "/**\n * Validates that a value is a finite non-NaN number.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "number: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "number", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.object:function(1)", + "docComment": "/**\n * Validate an object has a particular shape.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function object(config: " + }, + { + "kind": "Content", + "text": "{\n readonly [K in keyof Shape]: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "config", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Shape", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "object" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!T.ObjectValidator:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class ObjectValidator extends " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Shape", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "ObjectValidator", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!T.ObjectValidator:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `ObjectValidator` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(config: " + }, + { + "kind": "Content", + "text": "{\n readonly [K in keyof Shape]: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ", shouldAllowUnknownProperties?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "config", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "shouldAllowUnknownProperties", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": true + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.ObjectValidator#allowUnknownProperties:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "allowUnknownProperties(): " + }, + { + "kind": "Reference", + "text": "ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator: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": "allowUnknownProperties" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!T.ObjectValidator#config:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly config: " + }, + { + "kind": "Content", + "text": "{\n readonly [K in keyof Shape]: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "config", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.ObjectValidator#extend:member(1)", + "docComment": "/**\n * Extend an object validator by adding additional properties.\n *\n * @example\n * ```ts\n * const animalValidator = T.object({\n * \tname: T.string,\n * })\n * const catValidator = animalValidator.extend({\n * \tmeowVolume: T.number,\n * })\n * ```\n *\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "extend" + }, + { + "kind": "Content", + "text": ">(extension: " + }, + { + "kind": "Content", + "text": "{\n readonly [K in keyof Extension]: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": ";\n }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ObjectValidator", + "canonicalReference": "@tldraw/validate!ObjectValidator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "Extension", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 10 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "extension", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 7 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "extend" + } + ], + "extendsTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.optional:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function optional(validator: " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "validator", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "optional" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.positiveInteger:var", + "docComment": "/**\n * Fails if value \\< 0 and is not an integer\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "positiveInteger: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "positiveInteger", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.positiveNumber:var", + "docComment": "/**\n * Fails if value \\< 0\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "positiveNumber: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "positiveNumber", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.setEnum:function(1)", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function setEnum(values: " + }, + { + "kind": "Reference", + "text": "ReadonlySet", + "canonicalReference": "!ReadonlySet:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "values", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "setEnum" + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.string:var", + "docComment": "/**\n * Validates that a value is a string.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "string: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "string", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/validate!T.TypeOf:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TypeOf" + }, + { + "kind": "Content", + "text": "> = " + }, + { + "kind": "Content", + "text": "V extends " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": " ? T : never" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "name": "TypeOf", + "typeParameters": [ + { + "typeParameterName": "V", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 4, + "endIndex": 7 + } + }, + { + "kind": "Function", + "canonicalReference": "@tldraw/validate!T.union:function(1)", + "docComment": "/**\n * Validate a union of several object types. Each object must have a property matching `key` which should be a unique string.\n *\n * @example\n * ```ts\n * const catValidator = T.object({ kind: T.value('cat'), meow: T.boolean })\n * const dogValidator = T.object({ kind: T.value('dog'), bark: T.boolean })\n * const animalValidator = T.union('kind', { cat: catValidator, dog: dogValidator })\n * ```\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function union" + }, + { + "kind": "Content", + "text": ">(key: " + }, + { + "kind": "Content", + "text": "Key" + }, + { + "kind": "Content", + "text": ", config: " + }, + { + "kind": "Content", + "text": "Config" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "UnionValidator", + "canonicalReference": "@tldraw/validate!UnionValidator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "config", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "Key", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Config", + "constraintTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "union" + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!T.UnionValidator:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class UnionValidator" + }, + { + "kind": "Content", + "text": ", UnknownValue = " + }, + { + "kind": "Content", + "text": "never" + }, + { + "kind": "Content", + "text": "> extends " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TypeOf", + "canonicalReference": "@tldraw/validate!T.TypeOf:type" + }, + { + "kind": "Content", + "text": " | UnknownValue>" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Key", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Config", + "constraintTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "UnknownValue", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + } + } + ], + "isAbstract": false, + "name": "UnionValidator", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!T.UnionValidator:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `UnionValidator` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(key: " + }, + { + "kind": "Content", + "text": "Key" + }, + { + "kind": "Content", + "text": ", config: " + }, + { + "kind": "Content", + "text": "Config" + }, + { + "kind": "Content", + "text": ", unknownValueValidation: " + }, + { + "kind": "Content", + "text": "(value: object, variant: string) => UnknownValue" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "config", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "unknownValueValidation", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.UnionValidator#validateUnknownVariants:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "validateUnknownVariants(unknownValueValidation: " + }, + { + "kind": "Content", + "text": "(value: object, variant: string) => Unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "UnionValidator", + "canonicalReference": "@tldraw/validate!UnionValidator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "Unknown", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "unknownValueValidation", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "validateUnknownVariants" + } + ], + "extendsTokenRange": { + "startIndex": 8, + "endIndex": 12 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.unknown:var", + "docComment": "/**\n * Validation that accepts any value. Useful as a starting point for building your own custom validations.\n *\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "unknown: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "unknown", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "Variable", + "canonicalReference": "@tldraw/validate!T.unknownObject:var", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "unknownObject: " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": ">" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "unknownObject", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/validate!T.Validatable:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type Validatable = " + }, + { + "kind": "Content", + "text": "{\n validate: (value: unknown) => T;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "name": "Validatable", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!T.ValidationError:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class ValidationError extends " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "ValidationError", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!T.ValidationError:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `ValidationError` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(rawMessage: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", path?: " + }, + { + "kind": "Reference", + "text": "ReadonlyArray", + "canonicalReference": "!ReadonlyArray:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "rawMessage", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "isOptional": true + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!T.ValidationError#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!T.ValidationError#path:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly path: " + }, + { + "kind": "Reference", + "text": "ReadonlyArray", + "canonicalReference": "!ReadonlyArray:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "path", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!T.ValidationError#rawMessage:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly rawMessage: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "rawMessage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!T.Validator:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class Validator implements " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "Validator", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!T.Validator:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Validator` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(validationFn: " + }, + { + "kind": "Reference", + "text": "ValidatorFn", + "canonicalReference": "@tldraw/validate!T.ValidatorFn:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "validationFn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.Validator#check:member(1)", + "docComment": "/**\n * Refine this validation with an additional check that doesn't change the resulting value.\n *\n * @example\n * ```ts\n * const numberLessThan10Validator = T.number.check((value) => {\n * \tif (value >= 10) {\n * \t\tthrow new ValidationError(`Expected number less than 10, got ${value}`)\n * \t}\n * })\n * ```\n *\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "check(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", checkFn: " + }, + { + "kind": "Content", + "text": "(value: T) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "checkFn", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "check" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.Validator#check:member(2)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "check(checkFn: " + }, + { + "kind": "Content", + "text": "(value: T) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "checkFn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "check" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.Validator#nullable:member(1)", + "docComment": "/**\n * Returns a new validator that also accepts null or undefined. The resulting value will always be null.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "nullable(): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator: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": "nullable" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.Validator#optional:member(1)", + "docComment": "/**\n * Returns a new validator that also accepts null or undefined. The resulting value will always be null.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "optional(): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator: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": "optional" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.Validator#refine:member(1)", + "docComment": "/**\n * Refine this validation to a new type. The passed-in validation function should throw an error if the value can't be converted to the new type, or return the new type otherwise.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "refine(otherValidationFn: " + }, + { + "kind": "Content", + "text": "(value: T) => U" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "otherValidationFn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "refine" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!T.Validator#validate:member(1)", + "docComment": "/**\n * Asserts that the passed value is of the correct type and returns it. The returned value is guaranteed to be referentially equal to the passed value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "validate(value: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "validate" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!T.Validator#validationFn:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly validationFn: " + }, + { + "kind": "Reference", + "text": "ValidatorFn", + "canonicalReference": "@tldraw/validate!T.ValidatorFn:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "validationFn", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@tldraw/validate!T.ValidatorFn:type", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type ValidatorFn = " + }, + { + "kind": "Content", + "text": "(value: unknown) => T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "name": "ValidatorFn", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!UnionValidator:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class UnionValidator" + }, + { + "kind": "Content", + "text": ", UnknownValue = " + }, + { + "kind": "Content", + "text": "never" + }, + { + "kind": "Content", + "text": "> extends " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TypeOf", + "canonicalReference": "@tldraw/validate!T.TypeOf:type" + }, + { + "kind": "Content", + "text": " | UnknownValue>" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "Key", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "Config", + "constraintTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "UnknownValue", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + } + } + ], + "isAbstract": false, + "name": "UnionValidator", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!UnionValidator:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `UnionValidator` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(key: " + }, + { + "kind": "Content", + "text": "Key" + }, + { + "kind": "Content", + "text": ", config: " + }, + { + "kind": "Content", + "text": "Config" + }, + { + "kind": "Content", + "text": ", unknownValueValidation: " + }, + { + "kind": "Content", + "text": "(value: object, variant: string) => UnknownValue" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "config", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "unknownValueValidation", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!UnionValidator#validateUnknownVariants:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "validateUnknownVariants(unknownValueValidation: " + }, + { + "kind": "Content", + "text": "(value: object, variant: string) => Unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "UnionValidator", + "canonicalReference": "@tldraw/validate!UnionValidator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "Unknown", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "unknownValueValidation", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "validateUnknownVariants" + } + ], + "extendsTokenRange": { + "startIndex": 8, + "endIndex": 12 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@tldraw/validate!Validator:class", + "docComment": "/**\n * @public\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class Validator implements " + }, + { + "kind": "Reference", + "text": "Validatable", + "canonicalReference": "@tldraw/validate!T.Validatable:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "packages/validate/src/lib/validation.ts", + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isAbstract": false, + "name": "Validator", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@tldraw/validate!Validator:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Validator` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(validationFn: " + }, + { + "kind": "Reference", + "text": "ValidatorFn", + "canonicalReference": "@tldraw/validate!T.ValidatorFn:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "validationFn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!Validator#check:member(1)", + "docComment": "/**\n * Refine this validation with an additional check that doesn't change the resulting value.\n *\n * @example\n * ```ts\n * const numberLessThan10Validator = T.number.check((value) => {\n * \tif (value >= 10) {\n * \t\tthrow new ValidationError(`Expected number less than 10, got ${value}`)\n * \t}\n * })\n * ```\n *\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "check(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", checkFn: " + }, + { + "kind": "Content", + "text": "(value: T) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "checkFn", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "check" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!Validator#check:member(2)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "check(checkFn: " + }, + { + "kind": "Content", + "text": "(value: T) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "checkFn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "check" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!Validator#nullable:member(1)", + "docComment": "/**\n * Returns a new validator that also accepts null or undefined. The resulting value will always be null.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "nullable(): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator: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": "nullable" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!Validator#optional:member(1)", + "docComment": "/**\n * Returns a new validator that also accepts null or undefined. The resulting value will always be null.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "optional(): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator: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": "optional" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!Validator#refine:member(1)", + "docComment": "/**\n * Refine this validation to a new type. The passed-in validation function should throw an error if the value can't be converted to the new type, or return the new type otherwise.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "refine(otherValidationFn: " + }, + { + "kind": "Content", + "text": "(value: T) => U" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Validator", + "canonicalReference": "@tldraw/validate!Validator:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "otherValidationFn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "refine" + }, + { + "kind": "Method", + "canonicalReference": "@tldraw/validate!Validator#validate:member(1)", + "docComment": "/**\n * Asserts that the passed value is of the correct type and returns it. The returned value is guaranteed to be referentially equal to the passed value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "validate(value: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "validate" + }, + { + "kind": "Property", + "canonicalReference": "@tldraw/validate!Validator#validationFn:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly validationFn: " + }, + { + "kind": "Reference", + "text": "ValidatorFn", + "canonicalReference": "@tldraw/validate!T.ValidatorFn:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": true, + "isOptional": false, + "releaseTag": "Public", + "name": "validationFn", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + } + ] + } + ] +}