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