1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-10 11:35:52 +01:00
excalidraw/src
Alex Kim bb985eba3a
fix: resizing arrow labels (#6789)
* fix arrow labels resizing

- min arrow labels width based on font size
- labels width and padding in % of container's width
- resize labels simply multiplying by scale

* remove no longer needed getContainerDims

* fix arrow labels font size not updated on change font size action

* fix bound arrows not updated right after resize

* fix test

* fix 3+ point arrow label resizing with shift

* fix bound text not scaling when resizing with shift & n or s handle

* fix arrow labels width not updating when moving a 2-point arrow point with shift

---------

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2023-08-02 15:34:21 +05:30
..
actions feat: introducing Web-Embeds (alias iframe element) (#6691) 2023-07-24 16:51:53 +02:00
assets feat: redesign of Live Collaboration dialog (#6635) 2023-05-31 18:27:29 +02:00
components fix: resizing arrow labels (#6789) 2023-08-02 15:34:21 +05:30
context feat: overwrite confirmation dialogs (#6658) 2023-06-19 17:08:12 +02:00
css feat: introducing Web-Embeds (alias iframe element) (#6691) 2023-07-24 16:51:53 +02:00
data fix: prevent binding focus NaN value (#6803) 2023-07-26 23:28:11 +02:00
element fix: resizing arrow labels (#6789) 2023-08-02 15:34:21 +05:30
excalidraw-app fix: forgotten REACT_APP env variables (#6834) 2023-07-31 15:29:24 +02:00
hooks feat: introducing Web-Embeds (alias iframe element) (#6691) 2023-07-24 16:51:53 +02:00
locales feat: introducing Web-Embeds (alias iframe element) (#6691) 2023-07-24 16:51:53 +02:00
packages build: migrate to Vite 🚀 (#6818) 2023-07-27 23:50:11 +05:30
renderer feat: render bold lines in grid (#6779) 2023-07-27 22:41:44 +00:00
scene build: migrate to Vite 🚀 (#6818) 2023-07-27 23:50:11 +05:30
tests fix: resizing arrow labels (#6789) 2023-08-02 15:34:21 +05:30
align.ts feat: introduce frames (#6123) 2023-06-14 18:42:01 +02:00
analytics.ts build: migrate to Vite 🚀 (#6818) 2023-07-27 23:50:11 +05:30
appState.ts feat: introducing Web-Embeds (alias iframe element) (#6691) 2023-07-24 16:51:53 +02:00
bug-issue-template.js Add sentry integration (#1141) 2020-03-31 11:37:51 +03:00
charts.test.ts fix: Chart display fix (#5154) 2022-05-07 19:12:31 +02:00
charts.ts build: migrate to Vite 🚀 (#6818) 2023-07-27 23:50:11 +05:30
clients.ts feat: redesigned collab cursors (#6659) 2023-06-12 15:43:14 +02:00
clipboard.test.ts fix: Correctly paste contents parsed by JSON.parse() as text. (#5868) 2022-11-14 14:02:54 +05:30
clipboard.ts feat: introduce frames (#6123) 2023-06-14 18:42:01 +02:00
colors.ts feat: introducing Web-Embeds (alias iframe element) (#6691) 2023-07-24 16:51:53 +02:00
constants.ts fix: resizing arrow labels (#6789) 2023-08-02 15:34:21 +05:30
css.d.ts Fix padding in the library loading buttons (#2331) 2020-11-04 11:05:12 +01:00
distribute.ts feat: support adding multiple library items on canvas (#5116) 2022-05-11 15:51:02 +02:00
errors.ts fix: abstract and fix legacy fs (#4032) 2021-10-07 13:19:40 +02:00
frame.ts feat: cache most of element selection (#6747) 2023-07-17 01:09:44 +02:00
ga.ts chore: fix various typos (#4857) 2022-03-02 11:37:12 +05:30
gadirections.ts Prefer arrow functions (#2344) 2020-11-06 21:06:39 +01:00
galines.ts chore: fix various typos (#4857) 2022-03-02 11:37:12 +05:30
gapoints.ts Prefer arrow functions (#2344) 2020-11-06 21:06:39 +01:00
gatransforms.ts Prefer arrow functions (#2344) 2020-11-06 21:06:39 +01:00
gesture.ts fix: stop flooring scroll positions (#2883) 2021-01-31 10:47:43 +01:00
global.d.ts build: migrate to Vite 🚀 (#6818) 2023-07-27 23:50:11 +05:30
groups.ts feat: cache most of element selection (#6747) 2023-07-17 01:09:44 +02:00
history.ts fix: move utility types out of .d.ts file to fix exported declaration files (#6315) 2023-03-04 19:21:57 +01:00
i18n.ts build: migrate to Vite 🚀 (#6818) 2023-07-27 23:50:11 +05:30
index-node.ts feat: image support (#4011) 2021-10-21 22:05:48 +02:00
index.tsx fix: refresh sw when browser refreshed (#6824) 2023-07-28 20:17:24 +05:30
jotai.ts fix: rerender i18n in host components on lang change (#6224) 2023-02-22 14:01:23 +00:00
keys.ts feat: introducing Web-Embeds (alias iframe element) (#6691) 2023-07-24 16:51:53 +02:00
math.test.ts Shift loses pointer fixing #1296 (#1330) 2020-04-10 00:14:32 +09:00
math.ts feat: introduce frames (#6123) 2023-06-14 18:42:01 +02:00
points.ts feat: Support labels for arrow 🔥 (#5723) 2022-12-05 21:03:13 +05:30
polyfill.ts feat: show a mid point for linear elements (#5534) 2022-08-11 20:16:25 +05:30
pwacompat.d.ts Add PWACompat (#1433) 2020-04-16 14:23:39 +02:00
random.ts fix: check if process is defined before using so it works in browser (#4497) 2021-12-28 17:17:41 +05:30
react-app-env.d.ts TS, Prettier, Eslint (#39) 2020-01-02 11:03:48 -08:00
setupTests.ts build: migrate to Vite 🚀 (#6818) 2023-07-27 23:50:11 +05:30
shapes.tsx feat: introduce frames (#6123) 2023-06-14 18:42:01 +02:00
types.ts feat: introducing Web-Embeds (alias iframe element) (#6691) 2023-07-24 16:51:53 +02:00
utility-types.ts refactor: add typeScript support to enforce valid translation keys (#6776) 2023-07-20 18:15:32 +02:00
utils.ts build: migrate to Vite 🚀 (#6818) 2023-07-27 23:50:11 +05:30
vite-env.d.ts fix: refresh sw when browser refreshed (#6824) 2023-07-28 20:17:24 +05:30
zindex.ts fix: elements in non-existing frame getting removed (#6708) 2023-06-22 22:10:08 +00:00