Commit Graph

3662 Commits

Author SHA1 Message Date
Mark Tolmacs 7f5a9366ad
Merge branch 'master' into feat/astar 2024-08-02 12:44:56 +02:00
Marcel Mraz 84d89b9a8a
fix: throttle fractional indices validation (#8306) 2024-08-02 11:55:15 +02:00
David Luzar e63dd025c9
fix: allow binding elbow arrows to frame children (#8309) 2024-08-01 19:40:54 +02:00
Márk Tolmács 15e019706d
feat: Orthogonal (elbow) arrows for diagramming (#8299)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2024-08-01 18:39:03 +02:00
Aakansha Doshi a133a70e87
build: update release script to build esm (#8308) 2024-08-01 20:19:37 +05:30
Marcel Mraz 80ea7ca23f
fix: skip registering font faces for local fonts (#8303) 2024-08-01 11:32:16 +02:00
David Luzar e844580b14
feat: remove automatic frame naming (#8302) 2024-07-31 13:56:11 +02:00
Marcel Mraz 5a0771ad9c
fix: load fonts for `exportToCanvas` (#8298) 2024-07-30 17:23:35 +02:00
Marcel Mraz adcdbe2907
fix: re-add Cascadia Code with ligatures (#8291) 2024-07-30 11:15:11 +02:00
Marcel Mraz 230d0edc44
feat: multiple fonts fallbacks (#8286) 2024-07-30 10:34:40 +02:00
Marcel Mraz d0a380758e
feat: ability to debug the state of fractional indices (#8235) 2024-07-30 10:03:27 +02:00
Mark Tolmacs b97aee6092
Eliipse and rounded rectangle with one edge case
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-28 22:35:42 +02:00
Mark Tolmacs 946d88be36
Test fixes
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-27 21:29:53 +02:00
Mark Tolmacs 570022c607
Workgin rotation with non-rounded rectangles, but rounded corner bind jumnps
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-27 21:29:46 +02:00
Mark Tolmacs e8c482ff10
Non-rotated rounded rectangle binding fixed
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-27 19:58:36 +02:00
Mark Tolmacs 31f14d6f4e
Rotation support for rounded rectangle and binding adaptation
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-27 17:52:13 +02:00
Mark Tolmacs 230642bf29
Rounded rectangle shape intersection detection
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-27 15:10:46 +02:00
Ryan Di 7b36de0476
fix: linear elements not selected on pointer up from hitting its bound text (#8285)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2024-07-27 13:02:00 +00:00
David Luzar 2427e622b0
feat: improve mermaid detection on paste (#8287) 2024-07-27 12:36:54 +02:00
Mark Tolmacs 18f3ff27a0
Rectangle and line segment collision + refactoring
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-26 18:43:29 +02:00
Mark Tolmacs de43cfd3ce
Ellipse-line intercept points
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-25 19:26:18 +02:00
Marcel Mraz 62228e0bbb
feat: introduce font picker (#8012)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2024-07-25 18:55:55 +02:00
Mark Tolmacs fc8cce4347
Refactor
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-25 17:22:05 +02:00
Mark Tolmacs 1fb74c6a62
Mid point snapping is relative to size
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-25 17:21:28 +02:00
Mark Tolmacs 11af75ee10
Arc point testing
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-25 17:21:12 +02:00
Mark Tolmacs 233511317f
Fix bug with shape intersection code
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-24 20:25:41 +02:00
Mark Tolmacs f30ae84a1f
Fixed point binding fixed
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-24 19:53:29 +02:00
Mark Tolmacs c09dc9cdee
Additional penetrating arrow fixes
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-24 16:41:38 +02:00
Mark Tolmacs 28b227bf3f
Fix penetrating arrow on half-bound corner cases
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-24 16:28:02 +02:00
Mark Tolmacs c50a82748e
Merge branch 'master' into feat/astar 2024-07-24 12:04:41 +02:00
Mark Tolmacs 8059bd15a9
Converting simple arrow should bind outside of shape
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-23 21:35:46 +02:00
Mark Tolmacs f5908dad18
Binding distance fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-23 19:49:49 +02:00
Mark Tolmacs 2d72ef421d
More overlap handling
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-23 16:00:36 +02:00
Mark Tolmacs f5bc4b6814
Overlap fixes
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-23 15:50:04 +02:00
Mark Tolmacs d7f8efb064
Refactoring arrow creation and corner fix
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-23 15:29:38 +02:00
DDDDD12138 4c5408263c
chore: Correct Typos in Code Comments (#8268)
chore: correct typos

Co-authored-by: wuzhiqing <wuzhiqing@linklogis.com>
2024-07-23 14:26:55 +05:30
Aakansha Doshi bd7b778f41
perf: cache the temp canvas created for labeled arrows (#8267)
* perf: cache the temp canvas created for labeled arrows

* use allEleemntsMap so bound text element can be retrieved when editing

* remove logs

* fix rotation

* pass isRotating

* feat: cache `element.angle` instead of relying on `appState.isRotating`

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2024-07-23 11:17:32 +05:30
David Luzar 43b2476dfe
fix: revert default element canvas padding change (#8266) 2024-07-22 11:47:16 +02:00
Mark Tolmacs a159eb0126
Shape close behavior
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-19 22:53:53 +02:00
Mark Tolmacs ecf27a9a2b
Attempt at Z-cross handling
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-19 21:56:00 +02:00
Mark Tolmacs 23dd797dca
Avoid evaling to the same path
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-19 18:40:26 +02:00
Mark Tolmacs d3aca3ca05
Distance calc
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-19 18:25:16 +02:00
Mark Tolmacs fe0ff3f59f
Mid point binding on drag create
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-19 14:52:15 +02:00
Mark Tolmacs 6d5c7ee50e
Binding gap restored
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-18 16:08:13 +02:00
Mark Tolmacs 48f267ddb0
Padding on non-connected sides
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-18 16:00:26 +02:00
Mark Tolmacs e8dfb69fe6
Fix routing issue experienced by Barney
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-18 14:49:01 +02:00
Mark Tolmacs f7b0a02f73
Bind in the middle of the shape too
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-17 20:49:18 +02:00
Mark Tolmacs 760f536657
Reroute when element is deleted
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-17 20:26:38 +02:00
Mark Tolmacs d25faf4060
Group resize fixes
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-17 19:14:13 +02:00
Mark Tolmacs f2b6de6c24
Binding gap disabled for elbow arrows
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
2024-07-16 21:47:56 +02:00