tldraw/assets/icons/icon/dash-dashed.svg

4 lines
2.7 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">
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 fill-rule="evenodd" clip-rule="evenodd" d="M12.4647 2.24741C13.2859 2.08493 14.1339 2 15 2C15.8661 2 16.7141 2.08493 17.5353 2.24741C18.4079 2.42002 18.9753 3.26726 18.8026 4.13978C18.63 5.01229 17.7828 5.57968 16.9103 5.40707C16.2937 5.2851 15.6552 5.2209 15 5.2209C14.3448 5.2209 13.7063 5.2851 13.0897 5.40707C12.2172 5.57968 11.37 5.01229 11.1974 4.13978C11.0248 3.26726 11.5921 2.42002 12.4647 2.24741ZM10.01 4.63292C10.5048 5.372 10.3068 6.37227 9.56771 6.86708C8.50059 7.5815 7.5815 8.50059 6.86708 9.56771C6.37227 10.3068 5.372 10.5048 4.63292 10.01C3.89383 9.51521 3.69581 8.51495 4.19061 7.77586C5.13925 6.35889 6.35889 5.13925 7.77586 4.19061C8.51495 3.69581 9.51521 3.89383 10.01 4.63292ZM19.99 4.63292C20.4848 3.89383 21.4851 3.69581 22.2241 4.19061C23.6411 5.13925 24.8607 6.35889 25.8094 7.77586C26.3042 8.51495 26.1062 9.51521 25.3671 10.01C24.628 10.5048 23.6277 10.3068 23.1329 9.56771C22.4185 8.50059 21.4994 7.5815 20.4323 6.86708C19.6932 6.37227 19.4952 5.372 19.99 4.63292ZM4.13978 11.1974C5.01229 11.37 5.57968 12.2172 5.40707 13.0897C5.2851 13.7063 5.2209 14.3448 5.2209 15C5.2209 15.6552 5.2851 16.2937 5.40707 16.9103C5.57968 17.7828 5.01229 18.63 4.13978 18.8026C3.26726 18.9752 2.42002 18.4079 2.24741 17.5353C2.08493 16.7141 2 15.8661 2 15C2 14.1339 2.08493 13.2859 2.24741 12.4647C2.42002 11.5921 3.26726 11.0247 4.13978 11.1974ZM25.8602 11.1974C26.7327 11.0248 27.58 11.5921 27.7526 12.4647C27.9151 13.2859 28 14.1339 28 15C28 15.8661 27.9151 16.7141 27.7526 17.5353C27.58 18.4079 26.7327 18.9753 25.8602 18.8026C24.9877 18.63 24.4203 17.7828 24.5929 16.9103C24.7149 16.2937 24.7791 15.6552 24.7791 15C24.7791 14.3448 24.7149 13.7063 24.5929 13.0897C24.4203 12.2172 24.9877 11.37 25.8602 11.1974ZM4.63292 19.99C5.372 19.4952 6.37227 19.6932 6.86708 20.4323C7.5815 21.4994 8.50059 22.4185 9.56771 23.1329C10.3068 23.6277 10.5048 24.628 10.01 25.3671C9.51521 26.1062 8.51495 26.3042 7.77586 25.8094C6.35889 24.8607 5.13925 23.6411 4.19061 22.2241C3.69581 21.4851 3.89383 20.4848 4.63292 19.99ZM25.3671 19.99C26.1062 20.4848 26.3042 21.4851 25.8094 22.2241C24.8607 23.6411 23.6411 24.8607 22.2241 25.8094C21.4851 26.3042 20.4848 26.1062 19.99 25.3671C19.4952 24.628 19.6932 23.6277 20.4323 23.1329C21.4994 22.4185 22.4185 21.4994 23.1329 20.4323C23.6277 19.6932 24.628 19.4952 25.3671 19.99ZM11.1974 25.8602C11.37 24.9877 12.2172 24.4203 13.0897 24.5929C13.7063 24.7149 14.3448 24.7791 15 24.7791C15.6552 24.7791 16.2937 24.7149 16.9103 24.5929C17.7828 24.4203 18.63 24.9877 18.8026 25.8602C18.9752 26.7327 18.4079 27.58 17.5353 27.7526C16.7141 27.9151 15.8661 28 15 28C14.1339 28 13.2859 27.9151 12.4647 27.7526C11.5921 27.58 11.0247 26.7327 11.1974 25.8602Z" fill="black"/>
2023-04-25 11:01:25 +00:00
</svg>