Ryan Di
5ed82cb646
not using jittered keys in tests (for snapshot matching)
2023-12-07 23:40:56 +08:00
Ryan Di
dddb07cf57
restore test
2023-12-07 23:33:31 +08:00
Ryan Di
d6a6c40051
jitter when restoring as well
2023-12-06 23:39:34 +08:00
Ryan Di
bf53d90c68
indices with jitter
2023-12-06 23:25:11 +08:00
Ryan Di
b734f7cba8
fix shift to end z-index error
2023-12-06 16:56:55 +08:00
Ryan Di
4f218856c3
fix fractional indices on duplication
2023-12-06 10:39:13 +08:00
Ryan Di
7dfba985f9
fix fractional indices on adding new elements
2023-12-05 23:04:17 +08:00
Ryan Di
5bc23d6dee
merge branch 'fractional-indexing' of github.com:excalidraw/excalidraw into fractional-indexing
2023-12-05 13:09:35 +08:00
Ryan Di
093e684d9e
generate real fractional index after z-index actions
2023-12-05 13:07:07 +08:00
Ryan Di
84c1de7a03
generate real fractional index after z-index actions
2023-12-05 13:06:00 +08:00
Ryan Di
d1a9c593cc
refactor code
2023-12-01 17:43:01 +08:00
Ryan Di
a7154227cf
reconciliate order based on fractional index
2023-12-01 15:59:36 +08:00
Ryan Di
1e132e33ae
normalize before replacing
2023-12-01 15:58:49 +08:00
Ryan Di
00ffa08e28
use string as fractional index value
2023-11-30 19:02:14 +08:00
Ryan Di
5c1787bdf4
update data restore to keep fractional index
2023-11-29 18:18:44 +08:00
Ryan Di
de32256466
simplify
2023-11-29 18:13:51 +08:00
Ryan Di
02dc00a47e
fractionalIndex as a byproduct or zIndex
2023-11-29 17:41:04 +08:00
Ryan Di and GitHub
f20ba90ffa
perf: improve element in frame check ( #7124 )
2023-10-09 16:32:27 +08:00
b7350f9707
fix: elements in non-existing frame getting removed ( #6708 )
...
Co-authored-by: dwelle <luzar.david@gmail.com >
2023-06-22 22:10:08 +00:00
81ebf82979
feat: introduce frames ( #6123 )
...
Co-authored-by: dwelle <luzar.david@gmail.com >
2023-06-14 18:42:01 +02:00
a9c5bdb878
fix: sort bound text elements to fix text duplication z-index error ( #5130 )
...
* fix: sort bound text elements to fix text duplication z-index error
* improve & sort groups & add tests
* fix backtracking and discontiguous groups
---------
Co-authored-by: dwelle <luzar.david@gmail.com >
2023-02-02 16:23:39 +08:00
8466eb0eef
fix: apply the right type of roundness when pasting styles ( #5979 )
...
* fix: only paste roundness when target and source elements are of the same type
* apply roundness when pasting across different types
* simplify
Co-authored-by: dwelle <luzar.david@gmail.com >
2022-12-10 20:12:09 +08:00
5854ac3eed
feat: better default radius sizes for rectangles ( #5553 )
...
Co-authored-by: Ryan <diweihao@bytedance.com >
Co-authored-by: dwelle <luzar.david@gmail.com >
2022-12-08 16:48:49 +01:00
3a776f8795
fix: image-mirroring in export preview and in exported svg ( #5700 )
...
Co-authored-by: dwelle <luzar.david@gmail.com >
2022-09-17 21:02:13 +00:00
Ryan Di and GitHub
898789b979
chore: update lib menu click outside callback comment ( #5687 )
2022-09-12 11:19:22 +05:30
Ryan Di and GitHub
720f468f39
fix: improve solveQuadratic when a = 0 ( #5618 )
2022-08-24 14:44:59 +08:00
33300d19f6
fix: add random tiny offsets to avoid linear elements from being clipped ( #5615 )
...
Co-authored-by: Ryan Di <ryandi@Ryans-MacBook-Pro.local >
2022-08-23 15:52:15 +02:00
b818df1098
feat: lock angle when editing linear elements with shift pressed ( #5527 )
...
Co-authored-by: Ryan <diweihao@bytedance.com >
2022-08-04 22:42:31 +00:00
Ryan Di and GitHub
865d29388c
feat: cursor alignment when creating linear elements with shift pressed ( #5518 )
...
* feat: cursor alignment when creating linear elements
* feat: apply cursor alignment to multi-point linear elements
* refactor: rename size helper function
2022-08-02 15:43:19 +05:30
2820cd112e
feat: shift-clamp when creating multi-point lines/arrows ( #5500 )
...
Co-authored-by: Ryan <diweihao@bytedance.com >
2022-08-01 15:41:50 +02:00
426b5d9537
feat: cursor alignment when creating generic elements ( #5516 )
...
Co-authored-by: Ryan <diweihao@bytedance.com >
2022-08-01 13:24:46 +02:00