1.0.1 • Published 9 months ago

tldrawlignin v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

tldraw

Welcome to the public monorepo for tldraw.

What is tldraw?

tldraw is a collaborative digital whiteboard available at tldraw.com. Its editor, user interface, and other underlying libraries are open source and available in this repository. They are also distributed on npm. You can use tldraw to create a drop-in whiteboard for your product or as the foundation on which to build your own infinite canvas applications.

Learn more at tldraw.dev.

Note This repo contains source code for the current version of tldraw. You can find the source for the original version here.

Installation & Usage

To learn more about using tldraw in your React application, follow our guide here or see the examples sandbox.

import { Tldraw } from '@tldraw/tldraw'
import '@tldraw/tldraw/tldraw.css'

export default function () {
	return (
		<div style={{ position: 'fixed', inset: 0 }}>
			<Tldraw />
		</div>
	)
}

Local development

To run the local development server, first clone this repo.

Install dependencies:

yarn

Start the local development server:

yarn dev

Open the example project at localhost:5420.

Examples

Our development server contains several examples that demonstrates different ways that you can customize tldraw or use its APIs. Each example is found in the apps/examples folder.

  • eg: localhost:5420 for the basic example.
  • eg: localhost:5420/api for the API example.

To learn more about using tldraw, visit our docs.

About this repository

Top-level layout

This repository's contents is divided across four primary sections:

  • /apps contains the source for our applications
  • /packages contains the source for our public packages
  • /scripts contains scripts used for building and publishing
  • /assets contains icons and translations relied on by the app
  • /docs contains the content for our docs site at tldraw.dev

Applications

Packages

  • assets: a library for working with tldraw's fonts and translations
  • editor: the tldraw editor
  • state: a signals library, also known as signia
  • store: an in-memory reactive database
  • tldraw: the main tldraw package containing both the editor and the UI
  • tlschema: shape definitions and migrations
  • utils: low-level data utilities shared by other libraries
  • validate: a validation library used for run-time validation

Community

Have questions, comments or feedback? Join our discord or start a discussion.

Distributions

You can find tldraw on npm here.

At the moment the tldraw package is in alpha. We also ship a canary version which is always up to date with the main branch of this repo.

License

The source code for various apps and packages in this repository (as well as our 2.0+ distributions and releases) are currently licensed under Apache-2.0. These licenses are subject to change in our upcoming 2.0 release. If you are planning to use tldraw in a commercial product, please reach out at hello@tldraw.com.

Contribution

Please see our contributing guide. Found a bug? Please submit an issue.

Contact

Find us on Twitter at @tldraw or email hello@tldraw.com. You can also join our discord for quick help and support.

abababbrevabstract-leveldownacceptsacornacorn-globalsacorn-jsxacorn-walkagent-baseagentkeepaliveaggregate-errorahocorasickajvansi-colorsansi-escapesansi-regexansi-stylesanymatchaprobaare-we-there-yetargargparsearia-hiddenaria-queryarray-backarray-buffer-byte-lengtharray-flattenarray-includesarray-unionarray-uniqarray.prototype.flatarray.prototype.flatmaparray.prototype.tosortedasn1jsassertast-typesastral-regexastringasync-limiterasync-listenasync-semaasynckitauthor-regexautoavailable-typed-arraysawait-to-jsazure-devops-node-apibabel-jestbabel-plugin-istanbulbabel-plugin-jest-hoistbabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3babel-plugin-polyfill-regeneratorbabel-preset-current-node-syntaxbabel-preset-jestbailbalanced-matchbase64-arraybuffer-es6base64-jsbefore-after-hookbenchmarkbig.jsbinary-extensionsbindingsblbody-parserboolbasebottleneckbrace-expansionbracesbrowser-process-hrtimebrowser-stdoutbrowserify-zlibbrowserslistbserbufferbuffer-crc32buffer-frombytescaccacachecacheable-lookupcacheable-requestcall-bindcallsitescamelcasecaniuse-litecanvas-sizechalkchar-regexcharacter-entitiescharacter-entities-html4character-entities-legacycharacter-reference-invalidchardetcheeriocheerio-selectchokidarchokidar-clichownrci-infocjs-module-lexerclassnamesclean-stackcli-cursorcli-spinnerscli-truncatecli-widthcliuicloneclone-responsecocode-block-writercollect-v8-coveragecolor-convertcolor-namecolor-supportcolorettecolorscombined-streamcomma-separated-tokenscommand-line-applicationcommand-line-argscommand-line-usagecommanderconcat-mapconcurrentlyconfigconsole-control-stringscontent-dispositioncontent-typeconvert-hrtimeconvert-source-mapcookiecookie-signaturecore-jscore-js-compatcore-util-iscosmiconfigcreate-requirecreate-servecross-fetchcross-spawncss-selectcss-treecss-whatcss.escapecssesccssfontparsercssocssomcssstylecsstypedata-uri-to-bufferdata-urlsdate-fnsdeasyncdebugdecamelizedecimal.jsdecode-named-character-referencedecompress-responsededentdeep-equaldeep-extenddeep-isdeep-object-diffdeepmergedefaultsdefer-to-connectdeferred-leveldowndefine-propertiesdegeneratordelayed-streamdelegatesdepddeprecationdequaldestroydetect-indentdetect-libcdetect-newlinedetect-node-esdiffdiff-sequencesdir-globdoctrinedom-accessibility-apidom-serializerdomelementtypedomexceptiondomhandlerdomutilsdotenvduplexifydynamic-dedupeeastasianwidthedge-runtimeee-firstelectron-to-chromiumemitteryemoji-regexemojis-listencodeurlencodingencoding-downend-of-streamendentenhanced-resolveenquirerentitiesenv-cienv-pathserr-codeerrnoerror-exes-abstractes-get-iteratores-set-tostringtages-shim-unscopableses-to-primitivees6-object-assignesbuildesbuild-windows-64escaladeescape-htmlescape-string-regexpescodegeneslinteslint-config-prettiereslint-import-resolver-nodeeslint-module-utilseslint-plugin-importeslint-plugin-localeslint-plugin-no-only-testseslint-plugin-reacteslint-plugin-react-hookseslint-scopeeslint-visitor-keysespreeesprimaesqueryesrecurseestraverseestree-util-attach-commentsestree-util-build-jsxestree-util-is-identifier-nameestree-util-value-to-estreeestree-util-visitestree-walkeresutilsetagevaleventemitter3execaexitexit-hookexpand-templateexpectexpressextendextend-shallowexternal-editorfake-indexeddbfast-deep-equalfast-globfast-json-parsefast-json-stable-stringifyfast-levenshteinfastqfaultfb-watchmanfd-slicerfiguresfile-entry-cachefile-uri-to-pathfill-rangefinalhandlerfind-replacefind-upflatflat-cacheflattedfor-eachform-dataformatforwardedfp-tsfreshfromentriesfs-constantsfs-extrafs-minipassfs.realpathftpfunction-bindfunction.prototype.namefunctions-have-namesgaugegeneric-namesgensyncget-caller-fileget-intrinsicget-monorepo-packagesget-nonceget-package-typeget-portget-streamget-symbol-descriptionget-tsconfigget-urigit-hooks-listgithub-from-packagegitlogglobglob-parentglob-to-regexpglobalsglobalthisglobbygopdgotgraceful-fsgrapheme-splittergray-mattergrowlgunzip-maybehashas-bigintshas-flaghas-property-descriptorshas-protohas-symbolshas-tostringtaghas-unicodehast-util-to-estreehast-util-whitespacehehosted-git-infohotkeys-jshtml-encoding-snifferhtml-escaperhtmlparser2http-cache-semanticshttp-errorshttp-proxy-agenthttp2-wrapperhttps-proxy-agenthuman-signalshumanize-mshuskyiconv-liteicss-utilsidbieee754ignoreimmediateimport-cwdimport-freshimport-fromimport-lazyimport-localimurmurhashindent-stringinfer-ownerinflightinheritsiniinline-style-parserinquirerinternal-slotinvariantio-tsipipaddr.jsis-alphabeticalis-alphanumericalis-argumentsis-array-bufferis-arrayishis-bigintis-binary-pathis-boolean-objectis-bufferis-callableis-ciis-core-moduleis-date-objectis-decimalis-deflateis-extendableis-extglobis-fullwidth-code-pointis-generator-fnis-generator-functionis-globis-gzipis-hexadecimalis-interactiveis-lambdais-mapis-nanis-negative-zerois-numberis-number-objectis-path-insideis-plain-objis-plain-objectis-potential-custom-element-nameis-referenceis-regexis-setis-shared-array-bufferis-streamis-stringis-symbolis-typed-arrayis-unicode-supportedis-weakmapis-weakrefis-weaksetisarrayisexeisomorphic.jsistanbul-lib-coverageistanbul-lib-instrumentistanbul-lib-reportistanbul-lib-source-mapsistanbul-reportsjava-propertiesjavascript-stringifyjestjest-canvas-mockjest-changed-filesjest-circusjest-clijest-configjest-diffjest-docblockjest-eachjest-environment-jsdomjest-environment-nodejest-get-typejest-haste-mapjest-leak-detectorjest-matcher-utilsjest-message-utiljest-mockjest-pnp-resolverjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjest-runtimejest-snapshotjest-utiljest-validatejest-watcherjest-workerjjujs-sdsljs-tokensjs-yamljsdomjsescjson-bufferjson-parse-better-errorsjson-parse-even-better-errorsjson-schema-to-tsjson-schema-traversejson-stable-stringify-without-jsonifyjson5jsonc-parserjsonfilejsx-ast-utilskeytarkeyvkind-ofkleurlazyrepolevellevel-codeclevel-concat-iteratorlevel-errorslevel-iterator-streamlevel-jslevel-packagerlevel-supportsleveldownleveluplevenlevnlib0lilconfiglines-and-columnslinkify-itlint-stagedlistr2load-json-fileloader-utilslocate-pathlodashlodash.camelcaselodash.chunklodash.debouncelodash.getlodash.isequallodash.mergelodash.throttlelodash.uniqlog-symbolslog-updatelongest-streakloose-envifylowercase-keyslru-cacheltgtlz-stringmagic-stringmake-dirmake-errormake-fetch-happenmakeerrormarkdown-extensionsmarkdown-itmdast-util-definitionsmdast-util-from-markdownmdast-util-frontmattermdast-util-mdxmdast-util-mdx-expressionmdast-util-mdx-jsxmdast-util-mdxjs-esmmdast-util-phrasingmdast-util-to-hastmdast-util-to-markdownmdast-util-to-stringmdn-datamdurlmeantmedia-query-parsermedia-typermerge-descriptorsmerge-streammerge2methodsmicromarkmicromark-core-commonmarkmicromark-extension-frontmattermicromark-extension-mdx-expressionmicromark-extension-mdx-jsxmicromark-extension-mdx-mdmicromark-extension-mdxjsmicromark-extension-mdxjs-esmmicromark-factory-destinationmicromark-factory-labelmicromark-factory-mdx-expressionmicromark-factory-spacemicromark-factory-titlemicromark-factory-whitespacemicromark-util-charactermicromark-util-chunkedmicromark-util-classify-charactermicromark-util-combine-extensionsmicromark-util-decode-numeric-character-referencemicromark-util-decode-stringmicromark-util-encodemicromark-util-events-to-acornmicromark-util-html-tag-namemicromark-util-normalize-identifiermicromark-util-resolve-allmicromark-util-sanitize-urimicromark-util-subtokenizemicromark-util-symbolmicromark-util-typesmicromatchmimemime-dbmime-typesmimic-fnmimic-responsemin-indentminimatchminimistminipassminipass-collectminipass-fetchminipass-flushminipass-pipelineminipass-sizedminizlibmkdirpmkdirp-classicmllymodule-aliasmoo-colormrimsmute-streamnanoidnapi-build-utilsnapi-macrosnatural-comparenatural-compare-litenegotiatornested-error-stacksnetmasknode-abinode-addon-apinode-fetchnode-gypnode-gyp-buildnode-int64node-releasesnoptnormalize-pathnormalize-urlnpm-run-pathnpmlognth-checknwsapiobject-assignobject-inspectobject-isobject-keysobject.assignobject.entriesobject.fromentriesobject.hasownobject.valuesobjectorarrayon-finishedonceonetimeoptionatororaos-homediros-tmpdiroutdentp-cancelablep-limitp-locatep-mapp-trypac-proxy-agentpac-resolverpakoparent-moduleparse-authorparse-entitiesparse-github-urlparse-jsonparse-msparse-semverparse5parse5-htmlparser2-tree-adapterparseurlpath-browserifypath-existspath-is-absolutepath-keypath-parsepath-scurrypath-to-regexppath-typepathepeek-streampendperformance-nowperiscopicpicocolorspicomatchpidtreepifypiratespkg-confpkg-dirpkg-typesplatformplaywright-corepostcsspostcss-discard-duplicatespostcss-load-configpostcss-modulespostcss-modules-extract-importspostcss-modules-local-by-defaultpostcss-modules-scopepostcss-modules-valuespostcss-selector-parserpostcss-value-parserprebuild-installprelude-lsprettierprettier-plugin-organize-importspretty-bytespretty-formatpretty-msprocessprocess-nextick-argspromise-inflightpromise-retrypromptsprop-typesproperty-informationproxy-addrproxy-agentproxy-from-envprrpslpumppumpifypunycodepvtsutilspvutilsqsquerystringifyqueue-microtaskquick-lrurafrandombytesrange-parserraw-bodyrcreactreact-domreact-isreact-refreshreact-remove-scrollreact-remove-scroll-barreact-routerreact-router-domreact-shallow-rendererreact-style-singletonreact-test-rendererreadreadable-streamreaddirprealistic-structured-clonerecastredentreduce-flattenregenerateregenerate-unicode-propertiesregenerator-runtimeregenerator-transformregexp.prototype.flagsregexpu-coreregistry-urlregjsparserremark-frontmatterremark-mdx-frontmatterremark-parseremark-rehyperemove-markdownrequire-directoryrequire-from-stringrequire-likerequire-main-filenamerequiregrequires-portresize-observer-polyfillresolveresolve-alpnresolve-cwdresolve-fromresolve.exportsresponselikerestore-cursorretryreusifyrfdcrimrafrolluprollup-plugin-injectrollup-plugin-node-polyfillsrollup-pluginutilsrun-asyncrun-parallelrxjssadesafe-buffersafe-regex-testsafer-buffersaxsaxesschedulersection-mattersemversendserialize-javascriptserve-staticset-blockingset-cookie-parsersetprototypeofshebang-commandshebang-regexshell-quoteside-channelsignal-exitsignalesimple-concatsimple-getsisteransislashslice-ansismart-buffersockssocks-proxy-agentsort-object-keyssort-package-jsonsource-mapsource-map-jssource-map-supportsourcemap-codecspace-separated-tokensspawn-commandsprintf-jsssristack-utilsstatusesstop-iteration-iteratorstream-shiftstring-argvstring-hashstring-lengthstring-widthstring.prototype.matchallstring.prototype.trimstring.prototype.trimendstring.prototype.trimstartstringify-entitiesstring_decoderstrip-ansistrip-bomstrip-bom-stringstrip-final-newlinestrip-indentstrip-json-commentsstyle-to-objectsupports-colorsupports-hyperlinkssupports-preserve-symlinks-flagsvgosymbol-treetable-layouttapabletartar-fstar-streamterminal-linktest-excludetext-tablethroughthrough2time-spantinycolor2tldraw-vscodetmptmplto-fast-propertiesto-regex-rangetoidentifiertomltough-cookietr46tree-killtroughts-dedentts-loaderts-morphts-nodets-node-devts-toolbelttsconfigtsconfig-pathstslibtsutilstsxtunneltunnel-agenttype-checktype-detecttype-festtype-istyped-array-lengthtyped-rest-clienttypescripttypescript-memoizetypesontypeson-registrytypicaluc.microufounbox-primitiveunderscoreunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptunifiedunique-filenameunique-slugunist-builderunist-util-generatedunist-util-isunist-util-positionunist-util-position-from-estreeunist-util-remove-positionunist-util-stringify-positionunist-util-visitunist-util-visit-parentsuniversal-user-agentuniversalifyunpipeupdate-browserslist-dburi-jsurl-joinurl-parseuse-callback-refuse-isomorphic-layout-effectuse-sidecaruser-homeutilutil-deprecateutils-mergeuvuv8-compile-cache-libv8-to-istanbulvalidatorvaryvercelvfilevfile-locationvfile-messagevitevite-nodevm2vscew3c-hr-timew3c-xmlserializerwalkerwcwidthweb-vitalswebcrypto-corewebidl-conversionswhatwg-encodingwhatwg-mimetypewhatwg-urlwhichwhich-boxed-primitivewhich-collectionwhich-modulewhich-typed-arraywide-alignword-wrapwordwrapjsworkerpoolwrap-ansiwrappywrite-file-atomicwsxdmxml-name-validatorxml2jsxmlbuilderxmlcharsxregexpxtendy-leveldby-protocolsy-websockety18nyallistyamlyargsyargs-parseryargs-unparseryauzlyazlyjsynyocto-queuez-schemazodzod-validation-errorzwitch
1.0.1

9 months ago

1.0.0

9 months ago