3828 Commits

Author SHA1 Message Date
Mark Tolmacs
f9a66527ef
Fix cyclical dep
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-07-31 08:15:15 +02:00
Mark Tolmacs
3702e52454
New arrow binding rules
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-07-31 08:15:04 +02:00
Mark Tolmacs
20be1244b0
Fix type errors
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-07-29 21:16:23 +02:00
Mark Tolmacs
b2f9f3d598
Fix point at finalize
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-07-29 18:07:13 +02:00
Mark Tolmacs
a5c6befdb8
Add typing to action register()
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-07-29 18:03:38 +02:00
Mark Tolmacs
0beba1c150
Further simplify curve tracking 2025-07-28 20:20:16 +02:00
Mark Tolmacs
7e45fb6786
Add drag to the Stats panel when bound arrow is moved 2025-07-28 18:40:53 +02:00
Mark Tolmacs
3ff9da0433
Add actionFinalize when arrow in edit mode 2025-07-28 18:15:42 +02:00
Mark Tolmacs
e5cd93be4b
No keyboard movement when bound 2025-07-28 16:56:15 +02:00
Mark Tolmacs
fa765fa343
Fix restore 2025-07-28 15:59:02 +02:00
Mark Tolmacs
62dfdd69a1
Remove non-needed bind mode 2025-07-28 15:56:22 +02:00
Mark Tolmacs
5f4035e89c
Fix debug canvas crash 2025-07-28 15:55:57 +02:00
Mark Tolmacs
47efacddd1
Add watchState debug method to window.h 2025-07-28 15:41:00 +02:00
Mark Tolmacs
81e4381d22
Flashing arrow creation on binding band 2025-07-28 14:50:01 +02:00
Mark Tolmacs
4b3eef6099
Images now always bind inside 2025-07-28 14:19:54 +02:00
Mark Tolmacs
fc350cf9f5
Fix new arrow focus point 2025-07-28 14:04:48 +02:00
Mark Tolmacs
a664b71430
Fix selection bug 2025-07-28 13:48:05 +02:00
Mark Tolmacs
4eb62e40dd
Fix point binding 2025-07-28 13:39:58 +02:00
Mark Tolmacs
58bd87fc40
Internal arrow creation fix 2025-07-28 12:20:58 +02:00
Mark Tolmacs
f46e247ba3
Fix transparent shape binding 2025-07-27 15:06:23 +02:00
Mark Tolmacs
0313f6fb8b
Snap to center 2025-07-27 14:57:00 +02:00
Mark Tolmacs
243d12e8bb
Fix point handles 2025-07-27 14:31:06 +02:00
Mark Tolmacs
027a74acfc
Fix elbow arrow 2025-07-27 12:09:58 +02:00
Mark Tolmacs
9111fda080
Add binding strategy for drag arrow creation 2025-07-26 15:25:08 +02:00
Mark Tolmacs
b3bc40ef01
Move point click arrow creation over to common strategy
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2025-07-25 16:13:45 +02:00
Mark Tolmacs
a7679363b1
Tests added
Fix binding

Remove unneeded params

Unfinished simple arrow avoidance

Fix newly created jumping arrow when gets outside

Do not apply the jumping logic to elbow arrows for new elements

Existing arrows now jump out

Type updates to support fixed binding for simple arrows

Fix crash for elbow arrws in mutateElement()

Refactored simple arrow creation

Updating tests

No confirm threshold when inside biding range

Fix multi-point arrow grid off

Make elbow arrows respect grids

Unbind arrow if bound and moved at shaft of arrow key

Fix binding test

Fix drag unbind when the bound element is in the selection

Do not move mid point for simple arrows bound on both ends

Add test for mobing mid points for simple arrows when bound on the same element on both ends

Fix linear editor bug when both midpoint and endpoint is moved

Fix all point multipoint arrow highlight and binding

Arrow dragging gets a little drag to avoid accidental unbinding

Fixed point binding for simple arrows when the arrow doesn't point to the element

Fix binding disabled use-case triggering arrow editor

Timed binding mode change for simple arrows

Apply fixes

Remove code to unbind on drag

Update simple arrow fixed point when arrow is dragged or moved by arrow keys

Binding highlight fixes

Change bind mode timeout logic

Fix tests

Add Alt bindMode switch

 No dragging of arrows when bound, similar to elbow

Fix timeout not taking effect immediately

Bumop z-index for arrows when dragged

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

Only transparent bindables allow binding fallthrough

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

Fix lint

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

Fix point click array creation interaction with fixed point binding

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

Restrict new behavior to arrows only

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

Allow binding inside images

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

Fix already existing fixed binding retention

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

Refactor and implement fixed point binding for unfilled elements

Restore drag

Removed point binding

Binding code refactor

Added centered focus point

Binding & focus point debug

Add invariants to check binding integrity in elements

Binding fixes

Small refactors

Completely rewritten binding

Include point updates after binding update

Fix point updates when endpoint dragged and opposite endpoint orbits

centered focus point only for new arrows

Make z-index arrow reorder on bind

Turn off inside binding mode after leaving a shape

Remove invariants from debug

feat: expose `applyTo` options, don't commit empty text element (#9744)

* Expose applyTo options, skip re-draw for empty text

* Don't commit empty text elements

test: added test file for distribute (#9754)

z-index update

Bind mode on precise binding

Fix binding to inside element

Fix initial arrow not following cursor (white dot)

Fix elbow arrow

Fix z-index so it works on hover

Fix fixed angle orbiting
2025-07-25 13:48:49 +02:00
Mark Tolmacs
d628d479b2
Fixed point binding for simple arrows 2025-07-24 17:43:17 +02:00
Márk Tolmács
d6a934ed19
chore: Remove editingLinearElement (#9771)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2025-07-24 17:02:21 +02:00
Omar Brikaa
416da62138
fix: multiple line editor bugs (#9760)
Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
2025-07-24 09:11:04 +02:00
Omar Brikaa
f38f381989
fix: Remove flushSync from alt-lasso and elbow dragging (#9734)
* Remove lasso flushSync

* Remove selectedLinearElement flushSync

* Early return
2025-07-23 23:39:16 +02:00
Ryan Di
e5e07260c6
fix: improve line creation ux on touch screens (#9740)
* fix: awkward point adding and removing on touch device

* feat: move finalize to next to last point

* feat: on touch screen, click would create a default line/arrow

* fix: make default adaptive to zoom

* fix: increase padding to avoid cutoffs

* refactor: simplify

* fix: only use bigger padding when needed

* center arrow horizontally on pointer

* increase min drag distance before we start 2-point-arrow-drag-creating

* do not render 0-width arrow while creating

* dead code

* fix tests

* fix: remove redundant code

* do not enter line editor on creation

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2025-07-23 18:49:56 +10:00
Christopher Tangonan
8492b144b0
test: added test file for distribute (#9754) 2025-07-17 19:52:16 +02:00
Marcel Mraz
e46f038132
feat: expose applyTo options, don't commit empty text element (#9744)
* Expose applyTo options, skip re-draw for empty text

* Don't commit empty text elements
2025-07-17 15:22:32 +02:00
David Luzar
678dff25ed
fix: ellipsify MainMenu and CommandPalette items (#9743)
* fix: ellipsify MainMenu and CommandPalette items

* fix lint
2025-07-15 12:59:55 +02:00
Christopher Tangonan
0cfa53b764
fix: aligning and distributing elements and nested groups while editing a group (#9721) 2025-07-15 12:43:42 +02:00
David Luzar
cde46793f8
feat: support timestamps for youtube video emebds (#9737) 2025-07-13 19:19:10 +02:00
Aakansha Doshi
2d127f8c22
docs: fix broken update scene button example in docs (#9726)
fix: update scene example in docs
2025-07-08 19:29:44 +05:30
Soham Kulkarni
4eadb891f8
fix(toast): prevent toast from re-rendering and resetting timeout Fixes #9714 (#9715)
* Update App.tsx

* fix: lint

---------

Co-authored-by: Ryan Di <ryan.weihao.di@gmail.com>
2025-07-03 17:07:26 +10:00
Marcel Mraz
258605d1d5
chore: release multiple packages (#9698) 2025-06-30 12:19:15 +02:00
Márk Tolmács
c141500400
chore: Relocate visualdebug so ESLint doesn't complain (#9668) 2025-06-18 14:45:51 +02:00
Márk Tolmács
8e27de2cdc
fix: Frame dimensions change by stats don't include new elements (#9568) 2025-06-16 14:07:03 +02:00
Márk Tolmács
0a19c93509
fix: Bindings at partially overlapping binding areas (#9536) 2025-06-16 12:30:59 +02:00
Márk Tolmács
958597dfaa
chore: Refactor doBoundsIntersect (#9657) 2025-06-16 12:30:42 +02:00
Marcel Mraz
058918f8e5
feat: capture images after they initialize (#9643)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2025-06-15 23:43:14 +02:00
Spawn
3f194918e6
feat: add mulitplatform Docker image support (#9594) 2025-06-15 20:11:37 +02:00
Ryan Di
93c92d13e9
feat: wrap texts from stats panel (#9552) 2025-06-14 13:05:24 +02:00
zsviczian
84e96e9393
fix: move doBoundsIntersect from element/src/bounds.ts to common/math/src/utils.ts (#9650)
move doBoundsIntersect to math/utils

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2025-06-14 11:01:30 +00:00
zsviczian
320af405e9
fix: move elementCenterPoint from common/src/utils.ts to element/src/bounds.ts (#9647)
move elementCenterPoint from utils to bounds.ts
2025-06-14 12:49:22 +02:00
Marcel Mraz
60512f13d5 Fix broken history when eleemnt in update scene are optional 2025-06-14 12:29:58 +02:00
Márk Tolmács
f0458cc216
fix: Mid-point for rounded linears are not precisely centered (#9544) 2025-06-12 21:08:37 +02:00