Orange Mug
2dbfda1285
Added initial webdriver tests ( #1337 )
...
Adds webdriver tests for testing from a users perspective via browser
actions. We currently support local test runners for a bunch of actions
on desktop `chrome`/`firefox`/`edge`/`safari` on macos.
We also have a browserstack runner which we'll enable in another PR.
### Release Note
- Adds initial webdriver tests
2023-05-09 20:21:45 +00:00
Orange Mug
77175a9dc4
Added pHYs
to import/export of png images ( #1200 )
...
Added the following
- Always export pngs with a pixel-ratio of `2`
- Added the `pHYs` png metadata chunk describing the pixel ratio so it
opens with the correct size
- When importing PNGs read the `pHYs` chunk for the sizing info
All the exporting is done via just modifying the bytes from the browsers
native image handling.
https://user-images.githubusercontent.com/235915/234309015-19f39f3a-66ce-4ec2-b7d0-b34a07ed346b.mov
I've also added `ANALYZE=true` option to get the build metadata from
esbuild on boot of `yarn dev` which allow me to see the bundle size info
in https://esbuild.github.io/analyze/
![esbuild github
io_analyze_](https://user-images.githubusercontent.com/235915/234310302-c6fe8109-c82d-480a-8c65-c7638b09e71e.png )
You can see that `crc` adds about `4.4kb`
<img width="280" alt="Screenshot 2023-04-25 at 15 33 26"
src="https://user-images.githubusercontent.com/235915/234310669-99e3e787-ddca-4ad2-81cf-b4a541631d62.png ">
---------
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-04-29 22:10:01 +00:00
alex
29ed921c67
transfer-out: transfer out
2023-04-25 12:01:25 +01:00
alex
ec84f64e63
lite: delete all
2023-04-21 16:53:31 +01:00
Gwenaël Gallon
25f39a65fc
Chore: update and optimize turbo ( #885 )
...
* Update turbo to latest
* Update turbo.json
* The --stream flag has been deprecated
* Remove unused start:all
* build:packages -> use new --filter
* build:apps -> use new --filter
* build:www -> use new --filter
* build:core -> use new --filter
* build -> fix tldraw-example dependencies
* Optimize test* and lint
* start & start:core -> use new --filter
* start:electron -> use new --filter
* Remove unused start:apps
* Update turbo.json
* Caching ESLint
See Pro Tip : https://turborepo.org/docs/core-concepts/caching#configuring-cache-outputs
* Optimize test:watch
* start:www -> use new filter
* start:vscode -> use new filter
* Update build:core
* Optimize start and start:core
* Clean build:core
* Remove unused command
* Revert "Merge branch 'main' into chore/update-turbo"
This reverts commit a481c242054504c9b8452822df8c452c24bcdfbd, reversing
changes made to a0f2f337b3d00974741effd4faae699ce493d3a2.
* Update start:electron
* Remove unused deploy in turbo.json
* Add start:extension
* Add package:electron and package:vscode
* Add publish:vscode
* Revet Revert: revert "Merge branch 'main' into chore/update-turbo"
* Update vscode extension build
* Clean tldraw-example tsconfig.json
* Uniform script commands
* Fix start for www
* remove mention of removed packages
* add build:core
* Add force to build step
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-08-11 07:08:32 +01:00
Steve Ruiz
2352985e94
[feature] Iframe warning ( #800 )
2022-07-08 21:25:08 +01: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
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 3dc2ba703f4194eb7c47524d384dc8392daa18be.
* 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
megnakokkalera
c67c0871ff
Fix/undo on menu open ( #436 )
...
* fix for undo button on menu open
* Change toggle to set, add option for keyboard events
* Update .gitignore
* Update .gitignore
* Remove isStyleOpen
* Remove isStyleOpen
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-12-06 18:23:53 +00:00
Steve Ruiz
269a035bec
[chore] repo-map.tldr, vscode extension improvements ( #332 )
...
* v1.1.1
* add repo-map.tldr, minor changes to extension commands
2021-11-21 11:36:03 +00:00
Steve Ruiz
cd48b67a74
[chore] Sponsors in README ( #301 )
...
* Add images, read me links
* Add API route for sponsor image
* Update cache max age
2021-11-19 12:59:08 +00:00
Steve Ruiz
e6a3e5c3ea
[big chore] restore core to monorepo ( #287 )
...
* move core into repo, apps into apps folder, update tests
* Update scripts for build:core
* improve scripts
* remove noise from www
* Update .gitignore
* Fix focus bug
* add ci test script
* Update main.yml
2021-11-18 13:09:18 +00:00
Steve Ruiz
0c5f8dda48
1.0.0 ( #267 )
...
* remove sponsorwall for main route
* Adds sponsorship link
* Remove all sponsorwall
* Fix sponsorship link appearance on dark mode
* Add heart icon
* Fix text bug
* Fix toolbar, hide resize handles on sticky
* Add eraser
* Update Kbd.tsx
* cleanup
* base zoom delta on event deltaMode
* Fix image in example
* Fix eraser icon
* eraser tool resets to previous tool
* Update EraseTool.spec.ts
* Improves support for locked shapes
* Update _document.tsx
* Update CHANGELOG.md
* Adds multiplayer menu, fix develop route in example
* Tighten up top panel padding
* Update top bar, bump packages
* refactor TLDrawState -> TLDrawApp, mutables, new tests
* Fix scaling bug, delete groups bug
* fix snapping
* add pressure to points
* Remove mutables, rename to tldraw (or Tldraw)
* Clean up types, add darkmode prop
* more renaming
* rename getShapeUtils to getShapeUtil
* Fix file names
* Fix last bugs related to renaming
* Update state to app in tests
* rename types to TD
* remove unused styles / rename styles
* slight update to panel
* Fix rogue radix perf issue
* Update ZoomMenu.tsx
* Consolidate style panel
* Fix text wrapping in text shape, improve action menu
* Fix props
* add indicators for tool lock
* fix calloits
* Add click to erase shapes
* Slightly improve loading screen
* Update PrimaryTools.tsx
* remove force consistent filenames from tsconfig
* Update useTldrawApp.tsx
* fix capitalization
* Update main.yml
2021-11-16 16:01:29 +00:00
Steve Ruiz
fe2e3c81fe
[improvement] Migrations ( #217 )
...
* Add better migrations
* Improves migrations
* rename dev to example
* renames migrate
* Removes workers from git
* Remove rogue dependency
* Fix dropdown navigation by keyboard
2021-11-04 15:48:39 +00:00
Steve Ruiz
5998879e24
Replace
2021-08-10 17:12:55 +01:00
Steve Ruiz
2f5ad1efe1
Update .gitignore
2021-07-23 13:52:27 +01:00
Steve Ruiz
fd85e07728
Revert "Manual sentry integration?"
...
This reverts commit 12349b7129
.
2021-06-19 17:12:48 +01:00
Steve Ruiz
12349b7129
Manual sentry integration?
2021-06-19 17:03:07 +01:00
Steve Ruiz
76a1834e37
Adds cypress
2021-05-24 08:44:11 +01:00
Steve Ruiz
055caef3a5
a good starter template
2021-05-09 13:03:39 +01:00
Steve Ruiz
b202d04bc7
Initial commit
2021-05-09 12:48:30 +01:00