2023-05-09 16:08:38 +00:00
|
|
|
// This file is automatically generated by scripts/refresh-assets.ts.
|
2024-02-26 18:30:55 +00:00
|
|
|
// Do not edit manually. Or do, I'm a comment, not a cop.
|
2023-05-09 16:08:38 +00:00
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
|
|
/// <reference path="./modules.d.ts" />
|
2023-06-09 11:43:01 +00:00
|
|
|
import { formatAssetUrl } from './utils.js'
|
|
|
|
|
2024-02-07 16:02:22 +00:00
|
|
|
import embedIconsCodepen from './embed-icons/codepen.png'
|
|
|
|
import embedIconsCodesandbox from './embed-icons/codesandbox.png'
|
Add desmos graph embed type (#3608)
I added a new embed type, for desmos graphing calculator
(https://www.desmos.com/calculator) that uses their supported embed URL.
I added an icon, the new embed shape, and created tests for it.
https://github.com/tldraw/tldraw/assets/111339712/acc1a6b0-2551-4f25-8f85-20e6f829930e
### Change Type
<!-- ❗ Please select a 'Scope' label ❗️ -->
- [ ] `sdk` — Changes the tldraw SDK
- [x] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff
<!-- ❗ Please select a 'Type' label ❗️ -->
- [ ] `bugfix` — Bug fix
- [x] `feature` — New feature
- [ ] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [ ] `galaxy brain` — Architectural changes
- [x] `tests` — Changes to any test code
- [ ] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know
### Test Plan
1. Add links for desmos graphing calculator (e.g.
https://www.desmos.com/calculator/4wa2im6u31) by either pasting or using
the insert embed menu.
### Release Notes
- (feature) add desmos embed
---------
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2024-04-27 12:30:58 +00:00
|
|
|
import embedIconsDesmos from './embed-icons/desmos.png'
|
2024-02-07 16:02:22 +00:00
|
|
|
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'
|
2023-05-09 16:08:38 +00:00
|
|
|
import fontsMonospace from './fonts/IBMPlexMono-Medium.woff2'
|
|
|
|
import fontsSansSerif from './fonts/IBMPlexSans-Medium.woff2'
|
|
|
|
import fontsSerif from './fonts/IBMPlexSerif-Medium.woff2'
|
2023-12-19 14:17:45 +00:00
|
|
|
import fontsDraw from './fonts/Shantell_Sans-Tldrawish.woff2'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2024-04-29 10:58:15 +00:00
|
|
|
import iconsBroken from './icons/icon/broken.svg'
|
2024-03-27 09:41:13 +00:00
|
|
|
import iconsCheckCircle from './icons/icon/check-circle.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2023-05-17 14:30:28 +00:00
|
|
|
import iconsClipboardCopied from './icons/icon/clipboard-copied.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
import iconsClipboardCopy from './icons/icon/clipboard-copy.svg'
|
|
|
|
import iconsColor from './icons/icon/color.svg'
|
|
|
|
import iconsCross2 from './icons/icon/cross-2.svg'
|
2024-03-27 09:41:13 +00:00
|
|
|
import iconsCrossCircle from './icons/icon/cross-circle.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2024-04-29 10:58:15 +00:00
|
|
|
import iconsDisconnected from './icons/icon/disconnected.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
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 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'
|
2023-07-07 15:32:08 +00:00
|
|
|
import iconsGeoCloud from './icons/icon/geo-cloud.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
import iconsGeoDiamond from './icons/icon/geo-diamond.svg'
|
|
|
|
import iconsGeoEllipse from './icons/icon/geo-ellipse.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'
|
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'
|
2023-05-09 16:08:38 +00:00
|
|
|
import iconsInfoCircle from './icons/icon/info-circle.svg'
|
|
|
|
import iconsLeading from './icons/icon/leading.svg'
|
|
|
|
import iconsLink from './icons/icon/link.svg'
|
2024-04-30 10:39:53 +00:00
|
|
|
import iconsLock from './icons/icon/lock.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2024-04-30 10:39:53 +00:00
|
|
|
import iconsShare1 from './icons/icon/share-1.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2024-05-20 09:28:14 +00:00
|
|
|
import iconsSplineCubic from './icons/icon/spline-cubic.svg'
|
|
|
|
import iconsSplineLine from './icons/icon/spline-line.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
import iconsStackHorizontal from './icons/icon/stack-horizontal.svg'
|
|
|
|
import iconsStackVertical from './icons/icon/stack-vertical.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'
|
2024-04-29 10:58:15 +00:00
|
|
|
import iconsToggleOff from './icons/icon/toggle-off.svg'
|
|
|
|
import iconsToggleOn from './icons/icon/toggle-on.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2023-06-01 12:46:13 +00:00
|
|
|
import iconsToolHighlight from './icons/icon/tool-highlight.svg'
|
2023-05-19 11:09:13 +00:00
|
|
|
import iconsToolLaser from './icons/icon/tool-laser.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2024-04-29 10:58:15 +00:00
|
|
|
import iconsToolScreenshot from './icons/icon/tool-screenshot.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2024-04-30 10:39:53 +00:00
|
|
|
import iconsUnlock from './icons/icon/unlock.svg'
|
2023-05-19 10:23:43 +00:00
|
|
|
import iconsVerticalAlignEnd from './icons/icon/vertical-align-end.svg'
|
2024-04-29 10:58:15 +00:00
|
|
|
import iconsVerticalAlignMiddle from './icons/icon/vertical-align-middle.svg'
|
2023-05-19 10:23:43 +00:00
|
|
|
import iconsVerticalAlignStart from './icons/icon/vertical-align-start.svg'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2023-12-19 10:33:17 +00:00
|
|
|
import translationsCs from './translations/cs.json'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2024-02-07 16:27:27 +00:00
|
|
|
import translationsHr from './translations/hr.json'
|
2023-05-09 16:08:38 +00:00
|
|
|
import translationsHu from './translations/hu.json'
|
2024-04-30 10:23:23 +00:00
|
|
|
import translationsId from './translations/id.json'
|
2023-05-09 16:08:38 +00:00
|
|
|
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'
|
2024-02-14 08:59:41 +00:00
|
|
|
import translationsSl from './translations/sl.json'
|
2023-05-09 16:08:38 +00:00
|
|
|
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),
|
2024-04-29 10:58:15 +00:00
|
|
|
broken: formatAssetUrl(iconsBroken, opts),
|
2024-03-27 09:41:13 +00:00
|
|
|
'check-circle': formatAssetUrl(iconsCheckCircle, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
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),
|
2023-05-17 14:30:28 +00:00
|
|
|
'clipboard-copied': formatAssetUrl(iconsClipboardCopied, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
'clipboard-copy': formatAssetUrl(iconsClipboardCopy, opts),
|
|
|
|
color: formatAssetUrl(iconsColor, opts),
|
|
|
|
'cross-2': formatAssetUrl(iconsCross2, opts),
|
2024-03-27 09:41:13 +00:00
|
|
|
'cross-circle': formatAssetUrl(iconsCrossCircle, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
'dash-dashed': formatAssetUrl(iconsDashDashed, opts),
|
|
|
|
'dash-dotted': formatAssetUrl(iconsDashDotted, opts),
|
|
|
|
'dash-draw': formatAssetUrl(iconsDashDraw, opts),
|
|
|
|
'dash-solid': formatAssetUrl(iconsDashSolid, opts),
|
2024-04-29 10:58:15 +00:00
|
|
|
disconnected: formatAssetUrl(iconsDisconnected, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
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-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),
|
2023-07-07 15:32:08 +00:00
|
|
|
'geo-cloud': formatAssetUrl(iconsGeoCloud, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
'geo-diamond': formatAssetUrl(iconsGeoDiamond, opts),
|
|
|
|
'geo-ellipse': formatAssetUrl(iconsGeoEllipse, 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),
|
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),
|
2023-05-09 16:08:38 +00:00
|
|
|
'info-circle': formatAssetUrl(iconsInfoCircle, opts),
|
|
|
|
leading: formatAssetUrl(iconsLeading, opts),
|
|
|
|
link: formatAssetUrl(iconsLink, opts),
|
2024-04-30 10:39:53 +00:00
|
|
|
lock: formatAssetUrl(iconsLock, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
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),
|
2024-04-30 10:39:53 +00:00
|
|
|
'share-1': formatAssetUrl(iconsShare1, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
'size-extra-large': formatAssetUrl(iconsSizeExtraLarge, opts),
|
|
|
|
'size-large': formatAssetUrl(iconsSizeLarge, opts),
|
|
|
|
'size-medium': formatAssetUrl(iconsSizeMedium, opts),
|
|
|
|
'size-small': formatAssetUrl(iconsSizeSmall, opts),
|
2024-05-20 09:28:14 +00:00
|
|
|
'spline-cubic': formatAssetUrl(iconsSplineCubic, opts),
|
|
|
|
'spline-line': formatAssetUrl(iconsSplineLine, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
'stack-horizontal': formatAssetUrl(iconsStackHorizontal, opts),
|
|
|
|
'stack-vertical': formatAssetUrl(iconsStackVertical, 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),
|
2024-04-29 10:58:15 +00:00
|
|
|
'toggle-off': formatAssetUrl(iconsToggleOff, opts),
|
|
|
|
'toggle-on': formatAssetUrl(iconsToggleOn, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
'tool-arrow': formatAssetUrl(iconsToolArrow, opts),
|
|
|
|
'tool-eraser': formatAssetUrl(iconsToolEraser, opts),
|
|
|
|
'tool-frame': formatAssetUrl(iconsToolFrame, opts),
|
|
|
|
'tool-hand': formatAssetUrl(iconsToolHand, opts),
|
2023-06-01 12:46:13 +00:00
|
|
|
'tool-highlight': formatAssetUrl(iconsToolHighlight, opts),
|
2023-05-19 11:09:13 +00:00
|
|
|
'tool-laser': formatAssetUrl(iconsToolLaser, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
'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),
|
2024-04-29 10:58:15 +00:00
|
|
|
'tool-screenshot': formatAssetUrl(iconsToolScreenshot, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
'tool-text': formatAssetUrl(iconsToolText, opts),
|
|
|
|
trash: formatAssetUrl(iconsTrash, opts),
|
|
|
|
twitter: formatAssetUrl(iconsTwitter, opts),
|
|
|
|
undo: formatAssetUrl(iconsUndo, opts),
|
|
|
|
ungroup: formatAssetUrl(iconsUngroup, opts),
|
2024-04-30 10:39:53 +00:00
|
|
|
unlock: formatAssetUrl(iconsUnlock, opts),
|
2023-05-19 10:23:43 +00:00
|
|
|
'vertical-align-end': formatAssetUrl(iconsVerticalAlignEnd, opts),
|
2024-04-29 10:58:15 +00:00
|
|
|
'vertical-align-middle': formatAssetUrl(iconsVerticalAlignMiddle, opts),
|
2023-05-19 10:23:43 +00:00
|
|
|
'vertical-align-start': formatAssetUrl(iconsVerticalAlignStart, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
'warning-triangle': formatAssetUrl(iconsWarningTriangle, opts),
|
|
|
|
'zoom-in': formatAssetUrl(iconsZoomIn, opts),
|
|
|
|
'zoom-out': formatAssetUrl(iconsZoomOut, opts),
|
|
|
|
},
|
|
|
|
translations: {
|
|
|
|
ar: formatAssetUrl(translationsAr, opts),
|
|
|
|
ca: formatAssetUrl(translationsCa, opts),
|
2023-12-19 10:33:17 +00:00
|
|
|
cs: formatAssetUrl(translationsCs, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
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),
|
2024-02-07 16:27:27 +00:00
|
|
|
hr: formatAssetUrl(translationsHr, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
hu: formatAssetUrl(translationsHu, opts),
|
2024-04-30 10:23:23 +00:00
|
|
|
id: formatAssetUrl(translationsId, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
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),
|
2024-02-14 08:59:41 +00:00
|
|
|
sl: formatAssetUrl(translationsSl, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
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),
|
Add desmos graph embed type (#3608)
I added a new embed type, for desmos graphing calculator
(https://www.desmos.com/calculator) that uses their supported embed URL.
I added an icon, the new embed shape, and created tests for it.
https://github.com/tldraw/tldraw/assets/111339712/acc1a6b0-2551-4f25-8f85-20e6f829930e
### Change Type
<!-- ❗ Please select a 'Scope' label ❗️ -->
- [ ] `sdk` — Changes the tldraw SDK
- [x] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff
<!-- ❗ Please select a 'Type' label ❗️ -->
- [ ] `bugfix` — Bug fix
- [x] `feature` — New feature
- [ ] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [ ] `galaxy brain` — Architectural changes
- [x] `tests` — Changes to any test code
- [ ] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know
### Test Plan
1. Add links for desmos graphing calculator (e.g.
https://www.desmos.com/calculator/4wa2im6u31) by either pasting or using
the insert embed menu.
### Release Notes
- (feature) add desmos embed
---------
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2024-04-27 12:30:58 +00:00
|
|
|
desmos: formatAssetUrl(embedIconsDesmos, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
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),
|
2023-07-31 15:44:33 +00:00
|
|
|
val_town: formatAssetUrl(embedIconsValTown, opts),
|
2023-05-09 16:08:38 +00:00
|
|
|
vimeo: formatAssetUrl(embedIconsVimeo, opts),
|
|
|
|
youtube: formatAssetUrl(embedIconsYoutube, opts),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|