tldraw/assets/icons/icon/font-mono.svg

5 lines
1.4 KiB
XML
Raw Permalink Normal View History

2023-04-25 11:01:25 +00:00
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.358 23.9353L10.0815 19.3244H4.68909L3.43867 23.9353H0L5.1059 5.75208H9.84709L14.979 23.9353H11.358ZM7.50254 9.11259H7.29414L5.28825 16.537H9.50843L7.50254 9.11259Z" fill="black"/>
Separate text-align property for shapes (#3627) This PR creates a new "text align" property for text shapes. Its default is left align. This means that text shapes now have their own alignment prop, separate from the vertical / horizontal alignment used in labels. The style panel for text has no visual change: <img width="400" alt="image" src="https://github.com/tldraw/tldraw/assets/23072548/aac80d2a-a069-4388-870b-1e0917d88eda"> The style panel for labels has consistent icons for label position: <img width="487" alt="image" src="https://github.com/tldraw/tldraw/assets/23072548/0adf7f0e-8446-4d3e-b9ea-a61e43035207"> Both may be configured separately. <img width="458" alt="image" src="https://github.com/tldraw/tldraw/assets/23072548/698dcfac-6eb2-4a8c-afb8-d1e5761019ef"> # Icon refresh This PR also removes many unused icons. It adds a special toggle icon for the context menu. <img width="571" alt="image" src="https://github.com/tldraw/tldraw/assets/23072548/489551e6-a370-4528-9ad4-8f93e119f26b"> <img width="492" alt="image" src="https://github.com/tldraw/tldraw/assets/23072548/cd3d77c7-8bae-4369-8b53-ca4685b2fd0e"> ### Change Type - [x] `sdk` — Changes the tldraw SDK - [x] `improvement` — Improving existing features ### Test Plan 1. Load files. 2. Paste excalidraw content. 3. Load v1 files. 4. Use the app as usual. - [x] Unit Tests ### Release Notes - Separates the text align property for text shapes and labels. --------- Co-authored-by: huppy-bot[bot] <128400622+huppy-bot[bot]@users.noreply.github.com>
2024-04-29 10:58:15 +00:00
<path d="M28.0462 23.9353C27.23 23.9353 26.5961 23.7356 26.1445 23.3362C25.7104 22.9194 25.4498 22.3462 25.363 21.6168H25.2328C24.9896 22.4504 24.512 23.1017 23.8 23.5706C23.0879 24.0222 22.2109 24.2479 21.1689 24.2479C19.8143 24.2479 18.7375 23.8919 17.9386 23.1799C17.1397 22.4678 16.7403 21.4779 16.7403 20.2101C16.7403 17.5008 18.7288 16.1462 22.7059 16.1462H25.0765V15.2605C25.0765 14.4095 24.868 13.7669 24.4512 13.3328C24.0344 12.8986 23.3571 12.6815 22.4193 12.6815C21.5683 12.6815 20.8823 12.8465 20.3613 13.1765C19.8403 13.5064 19.3974 13.9319 19.0327 14.4529L17.1311 12.8378C17.5479 12.091 18.2165 11.4658 19.1369 10.9622C20.0748 10.4412 21.2818 10.1807 22.758 10.1807C24.5294 10.1807 25.9101 10.5975 26.9 11.4311C27.9073 12.2473 28.4109 13.4717 28.4109 15.1042V21.4345H30V23.9353H28.0462ZM22.2891 21.9555C23.0879 21.9555 23.7479 21.7731 24.2689 21.4084C24.8073 21.0264 25.0765 20.514 25.0765 19.8714V18.074H22.784C20.9605 18.074 20.0487 18.6471 20.0487 19.7933V20.3143C20.0487 20.8527 20.2484 21.2608 20.6479 21.5387C21.0473 21.8165 21.5944 21.9555 22.2891 21.9555Z" fill="black"/>
2023-04-25 11:01:25 +00:00
</svg>