logseq/packages/tldraw
Gabriel Horner 0f3ff53c81 Merge branch 'master' into feat/db 2024-05-27 09:19:45 -04:00
..
apps/tldraw-logseq Merge branch 'master' into feat/db 2024-05-27 09:19:45 -04:00
cljs-demo move tldraw to packages 2024-01-15 18:08:08 +02:00
demo Merge branch 'feat/db' into chore/whiteboards-cleanup 2024-01-19 17:03:58 +02:00
packages Merge branch 'master' into feat/db 2024-02-06 14:13:57 +08:00
.editorconfig move tldraw to packages 2024-01-15 18:08:08 +02:00
.eslintignore move tldraw to packages 2024-01-15 18:08:08 +02:00
.eslintrc move tldraw to packages 2024-01-15 18:08:08 +02:00
.gitattributes move tldraw to packages 2024-01-15 18:08:08 +02:00
.gitignore move tldraw to packages 2024-01-15 18:08:08 +02:00
.npmignore move tldraw to packages 2024-01-15 18:08:08 +02:00
.prettierrc move tldraw to packages 2024-01-15 18:08:08 +02:00
LICENSE.md move tldraw to packages 2024-01-15 18:08:08 +02:00
README.md move tldraw to packages 2024-01-15 18:08:08 +02:00
package.json move tldraw to packages 2024-01-15 18:08:08 +02:00
tsconfig.base.json move tldraw to packages 2024-01-15 18:08:08 +02:00
tsconfig.json move tldraw to packages 2024-01-15 18:08:08 +02:00
yarn.lock replace slider 2024-01-30 12:58:56 +02:00

README.md

Developer Notes

Background

This folder contains the JS codes for a custom build of Tldraw to fit the needs of Logseq, which originates from an abandoned next branch from the author of Tldraw.

Development

Prerequisites

Modern JS eco tools like Node.js and yarn.

Run in dev mode

  • install dependencies with yarn
  • run dev mode with yarn dev, which will start a Vite server at http://127.0.0.1:3031/

Note, the dev mode is a standalone web app running a demo Tldraw app in tldraw/demo/src/App.jsx. The Logseq component renderers and handlers are all mocked to make sure Tldraw only functions can be isolatedly developed.

Other useful commands

  • fixing styles: yarn fix:style
  • build: yarn build

How it works

Data flow between Tldraw & Logseq

The data flow between Tldraw & Logseq can be found here: https://whimsical.com/9sdt5j7MabK6DVrxgTZw25