logseq/packages/tldraw
Konstantinos 043927031e
Enhance (dev) (#10981)
* remove electron.html

* remove unneeded some

* remove react deps from repo

* remove mobile index.html

* reintroduce tl-select-trigger styles

* reintroduce popper arrow styles

* remove ui.js from repo

* remove glide resources from repo

* enhance tabler-icons resource handling

* fix glidejs path

* add glidejs theme

* Revert "remove mobile index.html"

This reverts commit 8c84a2655f.

* Revert "enhance tabler-icons resource handling"

This reverts commit f8ac25154f.

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2024-08-09 17:00:15 -04:00
..
apps/tldraw-logseq Enhance (dev) (#10981) 2024-08-09 17:00:15 -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 fix: can't type space in a whiteboard block 2024-06-05 09:43:21 +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