Wykres commitów

68 Commity (60e936dfed76e10ef4297984e640809b67665e41)

Autor SHA1 Wiadomość Data
Steve Ruiz c3050db968
[fix] copy and paste (again) (#685)
* fix copy

* remove console logs

* update types
2022-05-14 14:15:55 +01:00
Steve Ruiz c54c800675
[improvement] local copy and export for images (#669)
* local images

use assets for local copy

add menu options

* clean up packages

* cleanup unused content, move file handling into app.paste

* Add tldraw-assets.json to other files.

* add path to editor

* Update build.mjs

* add export to server example with link to gist

* Fix onAssetCreate and onAssetDelete APIs

* Update yarn.lock

* fix bugs on paste, adjust api for getting images, fix readonly on cut, copy, paste

* re-enable swc

* paste svg strings as svg images

* cleanup

* fix string case for tldraw json
2022-05-11 14:25:08 +01:00
Ugbala Valentino eff858d0a7
fix: update tldraw to respond to dark mode prop (#659)
* fix: update tldraw to respond to darkMode prop

* fix: update dark mode route in examples
2022-04-29 09:35:20 +01:00
Steve Ruiz 79204d7ba5 fix build for vscode extension 2022-04-26 11:40:26 +01:00
Steve Ruiz 1dd71f8b5e update images 2022-03-09 16:11:30 +00:00
Steve Ruiz 1950b4fa99 version, update images 2022-03-09 16:02:51 +00:00
Enrico 2781aa4e0d
added CAD like behavior like described in issue #555 (#589)
* added cade like behaviour like described in issue #555

* added color change when selecting depending on behavior

* added option to turn on/off cad like selection

* Revert "added color change when selecting depending on behavior"

This reverts commit 4a4aac02b6.

* Remove colors, add perfect dash props, rename setting, move prop to appState

* Reorder menu

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-03-09 10:19:58 +00:00
Jordan Singer ecaf802791
Removes duplicate "Using the file system" link (#581)
In the tldraw-example app (already on line 73)
2022-02-21 15:33:52 +00:00
dependabot[bot] c2e0aeebc6
Bump nanoid from 3.1.30 to 3.1.31 in /examples/core-example-advanced (#570)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.1.31.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.1.31)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-11 21:35:44 +00:00
Steve Ruiz e1fb9a8250
[improvement] Improve monorepo (lask + turbo) (#566)
* add lask for packages

* Add turbo

* remove custom scripts

* update turbo scripts

* Improve scripts, update changelogs

* update action to use turbo

* Update .gitignore

* Update main.yml

* Update main.yml

* Update main.yml

* Add docs

* add clean
2022-02-08 11:05:56 +00:00
Steve Ruiz da4d566bd8 v1.6.1 2022-02-03 11:19:12 +00:00
Steve Ruiz 014bfbc841 bump dependencies 2022-02-03 10:57:03 +00:00
Steve Ruiz 4cee3203e6 v1.6.0 2022-01-31 15:06:01 +00:00
Steve Ruiz 7c82fbbb65 v1.5.2 2022-01-14 20:59:37 +00:00
Steve Ruiz cb1f4e242e v1.5.1 2022-01-14 20:46:02 +00:00
Steve Ruiz 15784517e8 v1.5.0 2022-01-10 21:11:25 +00:00
Faraz Shaikh 6103febaaf
Added exporting of shapes and pages as images (#468)
* Added exporting of shapeses

* added video serialization

* Fix viewport sizes, add chrome-aws-lambda for puppeteer

* Update menu styling

* extract to callback

* Update Loading.tsx

* force update menu

* fix missing fonts

* Added SVG and JSON export

* Fix json exports

* Merge branch 'main' into pr/468, update menus

* Update TldrawApp.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-01-10 16:36:28 +00:00
Milo Hill e62755ef10
Add support for persisting images/video in multiplayer (#475)
* Kee track of changed assets

* Add support for multiplayer image assets

* fix tests

* Add images

* Improve asset deletion

* Remove assets from document

* Test with v small image only

* Add test for deleteShapes

* Cleanup document assets

* Add multiplayer assets to www

* remove default storage root, which was preventing migration

* Update onAssetDelete flow, rename some files

* bump upload size to 5mb

* Fix freeze bug where image fails to load

* fix logic for removing assets

* Update useMultiplayerState.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-01-10 15:13:52 +00:00
Steve Ruiz f2481642f9 Fix context menu bug on mobile 2022-01-08 20:08:17 +00:00
Steve Ruiz cc8aa89ed5 v1.4.3 2022-01-07 09:01:48 +00:00
Steve Ruiz 9c3424a5fc Update documentation
bump versions

update readmes, licenses
2022-01-07 09:01:08 +00:00
Steve Ruiz 4b1137849a v1.4.2 2022-01-07 08:45:09 +00:00
Soufiane Ghzal 23ad10d856
Fixed bunch of broken links (#471)
* fixed local links to documentation in README.md

* fixed links to core package
2021-12-29 06:39:08 +00:00
Steve Ruiz 32a5511b3d v1.4.1 2021-12-28 11:50:33 +00:00
Steve Ruiz f57d6bda94 v1.4.0 2021-12-27 20:29:12 +00:00
Steve Ruiz d7a697647b
[feature] Labels for shapes (#462)
* Adds generic text label

* Clean up text label / text util

* labels for ellipse and triangles

* Add arrow label

* Update filesystem.ts

* Double click bend to edit label, fix mask location

* refactor arrowutil

* fix arrow bindings

* Rename text to label, add labelPoint

* Fix arrow binding, styles on text labels, double click bounds edge to edit label

* Update ArrowSession.ts

* Update StyleMenu.tsx

* set version
2021-12-27 19:21:30 +00:00
Steve Ruiz 297486bb34 Remove performance modes (for now) 2021-12-27 12:38:30 +00:00
Steve Ruiz 4aa8547a8e
[improvement] performance modes (#463)
* add performance modes to core, sessions

* Update filesystem.ts

* rename TLPerformance to TLPerformanceMode, fix bugs
2021-12-27 12:30:35 +00:00
Steve Ruiz dfe2e44c17 v1.3.0 2021-12-25 18:41:47 +00:00
Faraz Shaikh 1c65c031b2
Add Image and Video shapes (#460)
* Added image and video shapes

* Fixed bugs; Added optional onImageUpload callback

* Added id field to onImageUpload

* Added onImageDelete callback for cleanup

* Added firebase storage to multiplayer for media

* Added firebase storage to multiplayer for media

* Silence unnecessary TS errors

* Fixed bugs; Added tests

* Added tests

* Disable images for multiplayer example

* switch to assets in document, rather than on shapes, fix resize, fix sizes

* bump version, add migration for assets table

* Rename onImageUpload

* Add isPlaying state to video (not complete)

* Revert "Add isPlaying state to video (not complete)"

This reverts commit 3dc2ba703f.

* Adds controls when editing video, sync current time when cloning

* Remove unused tools

* avoid duplication in assets

* Remove unused image styles from style menu

* Fix placement of clone buttons

* Fix flag to hide image assets in multiplayer

* move getSizeFromDataUrl to filesystem

* Update VideoUtil.tsx

* Re-center video after it loads

* Add copy and paste support for assets

* Fix bug in state manager, remove unused assets on load, fix indicators

* Add multiplayer with images example

* Update MultiplayerEditor.tsx

* Add images to copy SVG

* tighten up some code around svg export

* Update TldrawApp.spec.ts

* Update useBoundsHandleEvents.tsx

* Reset image size by double clicking bounds

* fix reset size

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-12-25 17:06:33 +00:00
Steve Ruiz 2f84abcc1e v1.2.10 2021-12-22 14:33:56 +00:00
Steve Ruiz 9b7414509f v1.2.9 2021-12-22 00:46:58 +00:00
Steve Ruiz 7c2777966f
[improvement] Multiplayer + cursors (#457)
* bump versions, improve cursors

* Spline cursors
2021-12-22 00:14:38 +00:00
Steve Ruiz 3b220f0afe v1.2.8 2021-12-20 15:20:04 +00:00
Steve Ruiz 580248a3af v1.2.7 2021-12-12 21:45:57 +00:00
Steve Ruiz ec7fbd2033 v1.2.6 2021-12-12 21:21:10 +00:00
Steve Ruiz 8d9629586c v1.2.5 2021-12-10 16:08:17 +00:00
Steve Ruiz 8038e64a86 v1.2.4 2021-12-04 14:56:24 +00:00
Steve Ruiz fae66549c7 v1.2.3 2021-12-02 13:06:43 +00:00
Braden 522baf5b61
[fix] account for "draft" shapes when preserving selection state during replacePageContent (#427)
* account for "virtual" shapes when preserving appState

* rewrite merge logic

* More work on multiplayer

* Update TldrawApp.ts

* Improve logic around when to replace page content

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-12-02 12:49:07 +00:00
Steve Ruiz 33acf03004
[fix] multiplayer (sorta) (#426)
* Fix multiplayer

* Update TldrawApp.ts

* Update TldrawApp.ts

* Update TldrawApp.ts
2021-12-01 22:31:19 +00:00
Yao Wang 7522d25557
fix(core advance example): display right state (#406) 2021-11-28 13:07:17 +00:00
Steve Ruiz 5c0e4fad11 Upadte changelogs 2021-11-28 10:30:16 +00:00
Steve Ruiz 03cfea6404 v1.2.2 2021-11-28 10:25:17 +00:00
Steve Ruiz 3ab5db27b9 v1.2.1 2021-11-28 10:19:29 +00:00
Steve Ruiz 7bf5f5fd8a v1.2.0 2021-11-28 10:16:30 +00:00
Steve Ruiz 0fe3d80fa4 v1.1.11 2021-11-28 10:10:09 +00:00
Noah Shipley 98cc0d4cac
Feature/mobx - adds mobx support to @tldraw/core (#383)
* Initial commit with mobx

* Convert more to mobx

* Make useCameraCss reactive (autorun)

* Move more items to mobx

* Fix more invalid components and layout hooks that needed to be reactive

* Add autorun to css layout effect

* Remove centric specific yarn.lock changes

* mild cleanup

* update from main

* add tests, example

* cleanup

* minor tweak to advanced example

* Update app.tsx

* Optimizations around events not being memoized

* Support className property on SVGContainer

* Add data-type to shape container to aid with external styling

* Fix classnames

* Fixes bug on text shapes / shapes with refs

* v1.1.9-beta.1

* v1.1.9-beta.2

* Drop mobx as a dependency for core

* v1.1.9-beta.3

* rename

* Revert "Drop mobx as a dependency for core"

This reverts commit 2d93f84a87.

* remove unused code from utils, move curve to separate package

* v1.1.9-beta.4

* Add pretty-quick

* Update package.json

* Renamings

Co-authored-by: Noah Shipley <nshipley@centricsoftware.com>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-11-28 10:05:40 +00:00
Steve Ruiz 9f04e33ecd v1.1.10 2021-11-27 16:22:14 +00:00
Yao Wang dbbdb764ab
fix(core advance example): fix the error, when erase the shape (#398) 2021-11-27 14:51:17 +00:00