tldraw/packages/assets/imports.js

429 lines
23 KiB
JavaScript
Raw Normal View History

// This file is automatically generated by scripts/refresh-assets.ts.
// Do not edit manually. Or do, I'm a comment, not a cop.
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="./modules.d.ts" />
import { formatAssetUrl } from './utils.js'
import embedIconsCodepen from './embed-icons/codepen.png'
import embedIconsCodesandbox from './embed-icons/codesandbox.png'
import embedIconsDesmos from './embed-icons/desmos.png'
import embedIconsExcalidraw from './embed-icons/excalidraw.png'
import embedIconsFelt from './embed-icons/felt.png'
import embedIconsFigma from './embed-icons/figma.png'
import embedIconsGithubGist from './embed-icons/github_gist.png'
import embedIconsGoogleCalendar from './embed-icons/google_calendar.png'
import embedIconsGoogleMaps from './embed-icons/google_maps.png'
import embedIconsGoogleSlides from './embed-icons/google_slides.png'
import embedIconsObservable from './embed-icons/observable.png'
import embedIconsReplit from './embed-icons/replit.png'
import embedIconsScratch from './embed-icons/scratch.png'
import embedIconsSpotify from './embed-icons/spotify.png'
import embedIconsTldraw from './embed-icons/tldraw.png'
import embedIconsValTown from './embed-icons/val_town.png'
import embedIconsVimeo from './embed-icons/vimeo.png'
import embedIconsYoutube from './embed-icons/youtube.png'
import fontsMonospace from './fonts/IBMPlexMono-Medium.woff2'
import fontsSansSerif from './fonts/IBMPlexSans-Medium.woff2'
import fontsSerif from './fonts/IBMPlexSerif-Medium.woff2'
import fontsDraw from './fonts/Shantell_Sans-Tldrawish.woff2'
import iconsAlignBottom from './icons/icon/align-bottom.svg'
import iconsAlignCenterHorizontal from './icons/icon/align-center-horizontal.svg'
import iconsAlignCenterVertical from './icons/icon/align-center-vertical.svg'
import iconsAlignLeft from './icons/icon/align-left.svg'
import iconsAlignRight from './icons/icon/align-right.svg'
import iconsAlignTop from './icons/icon/align-top.svg'
import iconsArrowLeft from './icons/icon/arrow-left.svg'
import iconsArrowheadArrow from './icons/icon/arrowhead-arrow.svg'
import iconsArrowheadBar from './icons/icon/arrowhead-bar.svg'
import iconsArrowheadDiamond from './icons/icon/arrowhead-diamond.svg'
import iconsArrowheadDot from './icons/icon/arrowhead-dot.svg'
import iconsArrowheadNone from './icons/icon/arrowhead-none.svg'
import iconsArrowheadSquare from './icons/icon/arrowhead-square.svg'
import iconsArrowheadTriangleInverted from './icons/icon/arrowhead-triangle-inverted.svg'
import iconsArrowheadTriangle from './icons/icon/arrowhead-triangle.svg'
import iconsBlob from './icons/icon/blob.svg'
import iconsBringForward from './icons/icon/bring-forward.svg'
import iconsBringToFront from './icons/icon/bring-to-front.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
import iconsBroken from './icons/icon/broken.svg'
import iconsCheckCircle from './icons/icon/check-circle.svg'
import iconsCheck from './icons/icon/check.svg'
import iconsChevronDown from './icons/icon/chevron-down.svg'
import iconsChevronLeft from './icons/icon/chevron-left.svg'
import iconsChevronRight from './icons/icon/chevron-right.svg'
import iconsChevronUp from './icons/icon/chevron-up.svg'
import iconsChevronsNe from './icons/icon/chevrons-ne.svg'
import iconsChevronsSw from './icons/icon/chevrons-sw.svg'
import iconsClipboardCopied from './icons/icon/clipboard-copied.svg'
import iconsClipboardCopy from './icons/icon/clipboard-copy.svg'
import iconsColor from './icons/icon/color.svg'
import iconsCross2 from './icons/icon/cross-2.svg'
import iconsCrossCircle from './icons/icon/cross-circle.svg'
import iconsDashDashed from './icons/icon/dash-dashed.svg'
import iconsDashDotted from './icons/icon/dash-dotted.svg'
import iconsDashDraw from './icons/icon/dash-draw.svg'
import iconsDashSolid from './icons/icon/dash-solid.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
import iconsDisconnected from './icons/icon/disconnected.svg'
import iconsDiscord from './icons/icon/discord.svg'
import iconsDistributeHorizontal from './icons/icon/distribute-horizontal.svg'
import iconsDistributeVertical from './icons/icon/distribute-vertical.svg'
import iconsDot from './icons/icon/dot.svg'
import iconsDotsHorizontal from './icons/icon/dots-horizontal.svg'
import iconsDotsVertical from './icons/icon/dots-vertical.svg'
import iconsDragHandleDots from './icons/icon/drag-handle-dots.svg'
import iconsDuplicate from './icons/icon/duplicate.svg'
import iconsEdit from './icons/icon/edit.svg'
import iconsExternalLink from './icons/icon/external-link.svg'
import iconsFillFill from './icons/icon/fill-fill.svg'
import iconsFillNone from './icons/icon/fill-none.svg'
import iconsFillPattern from './icons/icon/fill-pattern.svg'
import iconsFillSemi from './icons/icon/fill-semi.svg'
import iconsFillSolid from './icons/icon/fill-solid.svg'
import iconsFollow from './icons/icon/follow.svg'
import iconsFollowing from './icons/icon/following.svg'
import iconsFontDraw from './icons/icon/font-draw.svg'
import iconsFontMono from './icons/icon/font-mono.svg'
import iconsFontSans from './icons/icon/font-sans.svg'
import iconsFontSerif from './icons/icon/font-serif.svg'
import iconsGeoArrowDown from './icons/icon/geo-arrow-down.svg'
import iconsGeoArrowLeft from './icons/icon/geo-arrow-left.svg'
import iconsGeoArrowRight from './icons/icon/geo-arrow-right.svg'
import iconsGeoArrowUp from './icons/icon/geo-arrow-up.svg'
import iconsGeoCheckBox from './icons/icon/geo-check-box.svg'
import iconsGeoCloud from './icons/icon/geo-cloud.svg'
import iconsGeoDiamond from './icons/icon/geo-diamond.svg'
import iconsGeoEllipse from './icons/icon/geo-ellipse.svg'
import iconsGeoHeart from './icons/icon/geo-heart.svg'
import iconsGeoHexagon from './icons/icon/geo-hexagon.svg'
import iconsGeoOctagon from './icons/icon/geo-octagon.svg'
import iconsGeoOval from './icons/icon/geo-oval.svg'
import iconsGeoPentagon from './icons/icon/geo-pentagon.svg'
import iconsGeoRectangle from './icons/icon/geo-rectangle.svg'
import iconsGeoRhombus2 from './icons/icon/geo-rhombus-2.svg'
import iconsGeoRhombus from './icons/icon/geo-rhombus.svg'
import iconsGeoStar from './icons/icon/geo-star.svg'
import iconsGeoTrapezoid from './icons/icon/geo-trapezoid.svg'
import iconsGeoTriangle from './icons/icon/geo-triangle.svg'
import iconsGeoXBox from './icons/icon/geo-x-box.svg'
import iconsGithub from './icons/icon/github.svg'
import iconsGroup from './icons/icon/group.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
import iconsHorizontalAlignEnd from './icons/icon/horizontal-align-end.svg'
import iconsHorizontalAlignMiddle from './icons/icon/horizontal-align-middle.svg'
import iconsHorizontalAlignStart from './icons/icon/horizontal-align-start.svg'
import iconsInfoCircle from './icons/icon/info-circle.svg'
import iconsLeading from './icons/icon/leading.svg'
import iconsLink from './icons/icon/link.svg'
import iconsLock from './icons/icon/lock.svg'
import iconsMenu from './icons/icon/menu.svg'
import iconsMinus from './icons/icon/minus.svg'
import iconsMixed from './icons/icon/mixed.svg'
import iconsPack from './icons/icon/pack.svg'
import iconsPlus from './icons/icon/plus.svg'
import iconsQuestionMarkCircle from './icons/icon/question-mark-circle.svg'
import iconsQuestionMark from './icons/icon/question-mark.svg'
import iconsRedo from './icons/icon/redo.svg'
import iconsResetZoom from './icons/icon/reset-zoom.svg'
import iconsRotateCcw from './icons/icon/rotate-ccw.svg'
import iconsRotateCw from './icons/icon/rotate-cw.svg'
import iconsSendBackward from './icons/icon/send-backward.svg'
import iconsSendToBack from './icons/icon/send-to-back.svg'
import iconsShare1 from './icons/icon/share-1.svg'
import iconsSizeExtraLarge from './icons/icon/size-extra-large.svg'
import iconsSizeLarge from './icons/icon/size-large.svg'
import iconsSizeMedium from './icons/icon/size-medium.svg'
import iconsSizeSmall from './icons/icon/size-small.svg'
import iconsSplineCubic from './icons/icon/spline-cubic.svg'
import iconsSplineLine from './icons/icon/spline-line.svg'
import iconsStackHorizontal from './icons/icon/stack-horizontal.svg'
import iconsStackVertical from './icons/icon/stack-vertical.svg'
import iconsStatusOffline from './icons/icon/status-offline.svg'
import iconsStretchHorizontal from './icons/icon/stretch-horizontal.svg'
import iconsStretchVertical from './icons/icon/stretch-vertical.svg'
import iconsTextAlignCenter from './icons/icon/text-align-center.svg'
import iconsTextAlignLeft from './icons/icon/text-align-left.svg'
import iconsTextAlignRight from './icons/icon/text-align-right.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
import iconsToggleOff from './icons/icon/toggle-off.svg'
import iconsToggleOn from './icons/icon/toggle-on.svg'
import iconsToolArrow from './icons/icon/tool-arrow.svg'
import iconsToolEraser from './icons/icon/tool-eraser.svg'
import iconsToolFrame from './icons/icon/tool-frame.svg'
import iconsToolHand from './icons/icon/tool-hand.svg'
import iconsToolHighlight from './icons/icon/tool-highlight.svg'
import iconsToolLaser from './icons/icon/tool-laser.svg'
import iconsToolLine from './icons/icon/tool-line.svg'
import iconsToolMedia from './icons/icon/tool-media.svg'
import iconsToolNote from './icons/icon/tool-note.svg'
import iconsToolPencil from './icons/icon/tool-pencil.svg'
import iconsToolPointer from './icons/icon/tool-pointer.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
import iconsToolScreenshot from './icons/icon/tool-screenshot.svg'
import iconsToolText from './icons/icon/tool-text.svg'
import iconsTrash from './icons/icon/trash.svg'
import iconsTwitter from './icons/icon/twitter.svg'
import iconsUndo from './icons/icon/undo.svg'
import iconsUngroup from './icons/icon/ungroup.svg'
import iconsUnlock from './icons/icon/unlock.svg'
import iconsVerticalAlignEnd from './icons/icon/vertical-align-end.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
import iconsVerticalAlignMiddle from './icons/icon/vertical-align-middle.svg'
import iconsVerticalAlignStart from './icons/icon/vertical-align-start.svg'
import iconsWarningTriangle from './icons/icon/warning-triangle.svg'
import iconsZoomIn from './icons/icon/zoom-in.svg'
import iconsZoomOut from './icons/icon/zoom-out.svg'
import translationsAr from './translations/ar.json'
import translationsCa from './translations/ca.json'
import translationsCs from './translations/cs.json'
import translationsDa from './translations/da.json'
import translationsDe from './translations/de.json'
import translationsEn from './translations/en.json'
import translationsEs from './translations/es.json'
import translationsFa from './translations/fa.json'
import translationsFi from './translations/fi.json'
import translationsFr from './translations/fr.json'
import translationsGl from './translations/gl.json'
import translationsHe from './translations/he.json'
import translationsHiIn from './translations/hi-in.json'
import translationsHr from './translations/hr.json'
import translationsHu from './translations/hu.json'
import translationsId from './translations/id.json'
import translationsIt from './translations/it.json'
import translationsJa from './translations/ja.json'
import translationsKoKr from './translations/ko-kr.json'
import translationsKu from './translations/ku.json'
import translationsLanguages from './translations/languages.json'
import translationsMain from './translations/main.json'
import translationsMy from './translations/my.json'
import translationsNe from './translations/ne.json'
import translationsNo from './translations/no.json'
import translationsPl from './translations/pl.json'
import translationsPtBr from './translations/pt-br.json'
import translationsPtPt from './translations/pt-pt.json'
import translationsRo from './translations/ro.json'
import translationsRu from './translations/ru.json'
import translationsSl from './translations/sl.json'
import translationsSv from './translations/sv.json'
import translationsTe from './translations/te.json'
import translationsTh from './translations/th.json'
import translationsTr from './translations/tr.json'
import translationsUk from './translations/uk.json'
import translationsVi from './translations/vi.json'
import translationsZhCn from './translations/zh-cn.json'
import translationsZhTw from './translations/zh-tw.json'
/**
* @param {AssetUrlOptions} [opts]
* @public
*/
export function getAssetUrlsByImport(opts) {
return {
fonts: {
monospace: formatAssetUrl(fontsMonospace, opts),
sansSerif: formatAssetUrl(fontsSansSerif, opts),
serif: formatAssetUrl(fontsSerif, opts),
draw: formatAssetUrl(fontsDraw, opts),
},
icons: {
'align-bottom': formatAssetUrl(iconsAlignBottom, opts),
'align-center-horizontal': formatAssetUrl(iconsAlignCenterHorizontal, opts),
'align-center-vertical': formatAssetUrl(iconsAlignCenterVertical, opts),
'align-left': formatAssetUrl(iconsAlignLeft, opts),
'align-right': formatAssetUrl(iconsAlignRight, opts),
'align-top': formatAssetUrl(iconsAlignTop, opts),
'arrow-left': formatAssetUrl(iconsArrowLeft, opts),
'arrowhead-arrow': formatAssetUrl(iconsArrowheadArrow, opts),
'arrowhead-bar': formatAssetUrl(iconsArrowheadBar, opts),
'arrowhead-diamond': formatAssetUrl(iconsArrowheadDiamond, opts),
'arrowhead-dot': formatAssetUrl(iconsArrowheadDot, opts),
'arrowhead-none': formatAssetUrl(iconsArrowheadNone, opts),
'arrowhead-square': formatAssetUrl(iconsArrowheadSquare, opts),
'arrowhead-triangle-inverted': formatAssetUrl(iconsArrowheadTriangleInverted, opts),
'arrowhead-triangle': formatAssetUrl(iconsArrowheadTriangle, opts),
blob: formatAssetUrl(iconsBlob, opts),
'bring-forward': formatAssetUrl(iconsBringForward, opts),
'bring-to-front': formatAssetUrl(iconsBringToFront, opts),
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
broken: formatAssetUrl(iconsBroken, opts),
'check-circle': formatAssetUrl(iconsCheckCircle, opts),
check: formatAssetUrl(iconsCheck, opts),
'chevron-down': formatAssetUrl(iconsChevronDown, opts),
'chevron-left': formatAssetUrl(iconsChevronLeft, opts),
'chevron-right': formatAssetUrl(iconsChevronRight, opts),
'chevron-up': formatAssetUrl(iconsChevronUp, opts),
'chevrons-ne': formatAssetUrl(iconsChevronsNe, opts),
'chevrons-sw': formatAssetUrl(iconsChevronsSw, opts),
'clipboard-copied': formatAssetUrl(iconsClipboardCopied, opts),
'clipboard-copy': formatAssetUrl(iconsClipboardCopy, opts),
color: formatAssetUrl(iconsColor, opts),
'cross-2': formatAssetUrl(iconsCross2, opts),
'cross-circle': formatAssetUrl(iconsCrossCircle, opts),
'dash-dashed': formatAssetUrl(iconsDashDashed, opts),
'dash-dotted': formatAssetUrl(iconsDashDotted, opts),
'dash-draw': formatAssetUrl(iconsDashDraw, opts),
'dash-solid': formatAssetUrl(iconsDashSolid, opts),
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
disconnected: formatAssetUrl(iconsDisconnected, opts),
discord: formatAssetUrl(iconsDiscord, opts),
'distribute-horizontal': formatAssetUrl(iconsDistributeHorizontal, opts),
'distribute-vertical': formatAssetUrl(iconsDistributeVertical, opts),
dot: formatAssetUrl(iconsDot, opts),
'dots-horizontal': formatAssetUrl(iconsDotsHorizontal, opts),
'dots-vertical': formatAssetUrl(iconsDotsVertical, opts),
'drag-handle-dots': formatAssetUrl(iconsDragHandleDots, opts),
duplicate: formatAssetUrl(iconsDuplicate, opts),
edit: formatAssetUrl(iconsEdit, opts),
'external-link': formatAssetUrl(iconsExternalLink, opts),
'fill-fill': formatAssetUrl(iconsFillFill, opts),
'fill-none': formatAssetUrl(iconsFillNone, opts),
'fill-pattern': formatAssetUrl(iconsFillPattern, opts),
'fill-semi': formatAssetUrl(iconsFillSemi, opts),
'fill-solid': formatAssetUrl(iconsFillSolid, opts),
follow: formatAssetUrl(iconsFollow, opts),
following: formatAssetUrl(iconsFollowing, opts),
'font-draw': formatAssetUrl(iconsFontDraw, opts),
'font-mono': formatAssetUrl(iconsFontMono, opts),
'font-sans': formatAssetUrl(iconsFontSans, opts),
'font-serif': formatAssetUrl(iconsFontSerif, opts),
'geo-arrow-down': formatAssetUrl(iconsGeoArrowDown, opts),
'geo-arrow-left': formatAssetUrl(iconsGeoArrowLeft, opts),
'geo-arrow-right': formatAssetUrl(iconsGeoArrowRight, opts),
'geo-arrow-up': formatAssetUrl(iconsGeoArrowUp, opts),
'geo-check-box': formatAssetUrl(iconsGeoCheckBox, opts),
'geo-cloud': formatAssetUrl(iconsGeoCloud, opts),
'geo-diamond': formatAssetUrl(iconsGeoDiamond, opts),
'geo-ellipse': formatAssetUrl(iconsGeoEllipse, opts),
'geo-heart': formatAssetUrl(iconsGeoHeart, opts),
'geo-hexagon': formatAssetUrl(iconsGeoHexagon, opts),
'geo-octagon': formatAssetUrl(iconsGeoOctagon, opts),
'geo-oval': formatAssetUrl(iconsGeoOval, opts),
'geo-pentagon': formatAssetUrl(iconsGeoPentagon, opts),
'geo-rectangle': formatAssetUrl(iconsGeoRectangle, opts),
'geo-rhombus-2': formatAssetUrl(iconsGeoRhombus2, opts),
'geo-rhombus': formatAssetUrl(iconsGeoRhombus, opts),
'geo-star': formatAssetUrl(iconsGeoStar, opts),
'geo-trapezoid': formatAssetUrl(iconsGeoTrapezoid, opts),
'geo-triangle': formatAssetUrl(iconsGeoTriangle, opts),
'geo-x-box': formatAssetUrl(iconsGeoXBox, opts),
github: formatAssetUrl(iconsGithub, opts),
group: formatAssetUrl(iconsGroup, opts),
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
'horizontal-align-end': formatAssetUrl(iconsHorizontalAlignEnd, opts),
'horizontal-align-middle': formatAssetUrl(iconsHorizontalAlignMiddle, opts),
'horizontal-align-start': formatAssetUrl(iconsHorizontalAlignStart, opts),
'info-circle': formatAssetUrl(iconsInfoCircle, opts),
leading: formatAssetUrl(iconsLeading, opts),
link: formatAssetUrl(iconsLink, opts),
lock: formatAssetUrl(iconsLock, opts),
menu: formatAssetUrl(iconsMenu, opts),
minus: formatAssetUrl(iconsMinus, opts),
mixed: formatAssetUrl(iconsMixed, opts),
pack: formatAssetUrl(iconsPack, opts),
plus: formatAssetUrl(iconsPlus, opts),
'question-mark-circle': formatAssetUrl(iconsQuestionMarkCircle, opts),
'question-mark': formatAssetUrl(iconsQuestionMark, opts),
redo: formatAssetUrl(iconsRedo, opts),
'reset-zoom': formatAssetUrl(iconsResetZoom, opts),
'rotate-ccw': formatAssetUrl(iconsRotateCcw, opts),
'rotate-cw': formatAssetUrl(iconsRotateCw, opts),
'send-backward': formatAssetUrl(iconsSendBackward, opts),
'send-to-back': formatAssetUrl(iconsSendToBack, opts),
'share-1': formatAssetUrl(iconsShare1, opts),
'size-extra-large': formatAssetUrl(iconsSizeExtraLarge, opts),
'size-large': formatAssetUrl(iconsSizeLarge, opts),
'size-medium': formatAssetUrl(iconsSizeMedium, opts),
'size-small': formatAssetUrl(iconsSizeSmall, opts),
'spline-cubic': formatAssetUrl(iconsSplineCubic, opts),
'spline-line': formatAssetUrl(iconsSplineLine, opts),
'stack-horizontal': formatAssetUrl(iconsStackHorizontal, opts),
'stack-vertical': formatAssetUrl(iconsStackVertical, opts),
'status-offline': formatAssetUrl(iconsStatusOffline, opts),
'stretch-horizontal': formatAssetUrl(iconsStretchHorizontal, opts),
'stretch-vertical': formatAssetUrl(iconsStretchVertical, opts),
'text-align-center': formatAssetUrl(iconsTextAlignCenter, opts),
'text-align-left': formatAssetUrl(iconsTextAlignLeft, opts),
'text-align-right': formatAssetUrl(iconsTextAlignRight, opts),
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
'toggle-off': formatAssetUrl(iconsToggleOff, opts),
'toggle-on': formatAssetUrl(iconsToggleOn, opts),
'tool-arrow': formatAssetUrl(iconsToolArrow, opts),
'tool-eraser': formatAssetUrl(iconsToolEraser, opts),
'tool-frame': formatAssetUrl(iconsToolFrame, opts),
'tool-hand': formatAssetUrl(iconsToolHand, opts),
'tool-highlight': formatAssetUrl(iconsToolHighlight, opts),
'tool-laser': formatAssetUrl(iconsToolLaser, opts),
'tool-line': formatAssetUrl(iconsToolLine, opts),
'tool-media': formatAssetUrl(iconsToolMedia, opts),
'tool-note': formatAssetUrl(iconsToolNote, opts),
'tool-pencil': formatAssetUrl(iconsToolPencil, opts),
'tool-pointer': formatAssetUrl(iconsToolPointer, opts),
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
'tool-screenshot': formatAssetUrl(iconsToolScreenshot, opts),
'tool-text': formatAssetUrl(iconsToolText, opts),
trash: formatAssetUrl(iconsTrash, opts),
twitter: formatAssetUrl(iconsTwitter, opts),
undo: formatAssetUrl(iconsUndo, opts),
ungroup: formatAssetUrl(iconsUngroup, opts),
unlock: formatAssetUrl(iconsUnlock, opts),
'vertical-align-end': formatAssetUrl(iconsVerticalAlignEnd, opts),
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
'vertical-align-middle': formatAssetUrl(iconsVerticalAlignMiddle, opts),
'vertical-align-start': formatAssetUrl(iconsVerticalAlignStart, opts),
'warning-triangle': formatAssetUrl(iconsWarningTriangle, opts),
'zoom-in': formatAssetUrl(iconsZoomIn, opts),
'zoom-out': formatAssetUrl(iconsZoomOut, opts),
},
translations: {
ar: formatAssetUrl(translationsAr, opts),
ca: formatAssetUrl(translationsCa, opts),
cs: formatAssetUrl(translationsCs, opts),
da: formatAssetUrl(translationsDa, opts),
de: formatAssetUrl(translationsDe, opts),
en: formatAssetUrl(translationsEn, opts),
es: formatAssetUrl(translationsEs, opts),
fa: formatAssetUrl(translationsFa, opts),
fi: formatAssetUrl(translationsFi, opts),
fr: formatAssetUrl(translationsFr, opts),
gl: formatAssetUrl(translationsGl, opts),
he: formatAssetUrl(translationsHe, opts),
'hi-in': formatAssetUrl(translationsHiIn, opts),
hr: formatAssetUrl(translationsHr, opts),
hu: formatAssetUrl(translationsHu, opts),
id: formatAssetUrl(translationsId, opts),
it: formatAssetUrl(translationsIt, opts),
ja: formatAssetUrl(translationsJa, opts),
'ko-kr': formatAssetUrl(translationsKoKr, opts),
ku: formatAssetUrl(translationsKu, opts),
languages: formatAssetUrl(translationsLanguages, opts),
main: formatAssetUrl(translationsMain, opts),
my: formatAssetUrl(translationsMy, opts),
ne: formatAssetUrl(translationsNe, opts),
no: formatAssetUrl(translationsNo, opts),
pl: formatAssetUrl(translationsPl, opts),
'pt-br': formatAssetUrl(translationsPtBr, opts),
'pt-pt': formatAssetUrl(translationsPtPt, opts),
ro: formatAssetUrl(translationsRo, opts),
ru: formatAssetUrl(translationsRu, opts),
sl: formatAssetUrl(translationsSl, opts),
sv: formatAssetUrl(translationsSv, opts),
te: formatAssetUrl(translationsTe, opts),
th: formatAssetUrl(translationsTh, opts),
tr: formatAssetUrl(translationsTr, opts),
uk: formatAssetUrl(translationsUk, opts),
vi: formatAssetUrl(translationsVi, opts),
'zh-cn': formatAssetUrl(translationsZhCn, opts),
'zh-tw': formatAssetUrl(translationsZhTw, opts),
},
embedIcons: {
codepen: formatAssetUrl(embedIconsCodepen, opts),
codesandbox: formatAssetUrl(embedIconsCodesandbox, opts),
desmos: formatAssetUrl(embedIconsDesmos, opts),
excalidraw: formatAssetUrl(embedIconsExcalidraw, opts),
felt: formatAssetUrl(embedIconsFelt, opts),
figma: formatAssetUrl(embedIconsFigma, opts),
github_gist: formatAssetUrl(embedIconsGithubGist, opts),
google_calendar: formatAssetUrl(embedIconsGoogleCalendar, opts),
google_maps: formatAssetUrl(embedIconsGoogleMaps, opts),
google_slides: formatAssetUrl(embedIconsGoogleSlides, opts),
observable: formatAssetUrl(embedIconsObservable, opts),
replit: formatAssetUrl(embedIconsReplit, opts),
scratch: formatAssetUrl(embedIconsScratch, opts),
spotify: formatAssetUrl(embedIconsSpotify, opts),
tldraw: formatAssetUrl(embedIconsTldraw, opts),
val_town: formatAssetUrl(embedIconsValTown, opts),
vimeo: formatAssetUrl(embedIconsVimeo, opts),
youtube: formatAssetUrl(embedIconsYoutube, opts),
},
}
}