🎥 Make videos programmatically with React
`@remotion/example`: Fix Mac cursor hotspots (#8289)
Jonny Burger73d251b0067e
diff --git a/packages/example/src/CanvasCapturePreview.tsx b/packages/example/src/CanvasCapturePreview.tsxindex 4a88592b1c..7e3a1ef3d9 100644--- a/packages/example/src/CanvasCapturePreview.tsx+++ b/packages/example/src/CanvasCapturePreview.tsx@@ -136,47 +136,49 @@ type CursorHotspot = {readonly y: number;};+// Derived from the official macOS cursor hotspots (HIServices cursor+// resources + NSCursor), mapped into the 32x32 viewBox of each SVG.const macCursorHotspotByFilename: Record<string, CursorHotspot> = {- 'resize northsouth.svg': {x: 10, y: 8},- 'beachball.svg': {x: 6, y: 6},- 'busy.svg': {x: 1, y: 14},- 'cell.svg': {x: 9, y: 9},- 'contextualmenu.svg': {x: 8, y: 7},- 'copy.svg': {x: 1, y: 14},- 'cross.svg': {x: 9, y: 9},- 'default.svg': {x: 10, y: 7},- 'handgrabbing.svg': {x: 8, y: 9},- 'handopen.svg': {x: 7, y: 6},- 'handpointing.svg': {x: 9, y: 8},- 'help.svg': {x: 12, y: 10},- 'makealias.svg': {x: 10, y: 9},- 'move.svg': {x: 8, y: 8},- 'notallowed.svg': {x: 7, y: 0},- 'poof.svg': {x: 7, y: 0},- 'resizedown.svg': {x: 8, y: 11},- 'resizeeast.svg': {x: 10, y: 10},- 'resizeleft.svg': {x: 11, y: 8},- 'resizeleftright.svg': {x: 7, y: 8},- 'resizenorth.svg': {x: 10, y: 10},- 'resizenortheast.svg': {x: 11, y: 11},- 'resizenortheastsouthwest.svg': {x: 9, y: 9},- 'resizenorthsouth.svg': {x: 10, y: 8},- 'resizenorthwest.svg': {x: 11, y: 11},- 'resizenorthwestsoutheast.svg': {x: 9, y: 9},- 'resizeright.svg': {x: 11, y: 8},- 'resizesouth.svg': {x: 10, y: 10},- 'resizesoutheast.svg': {x: 11, y: 11},- 'resizesouthwest.svg': {x: 11, y: 11},- 'resizeup.svg': {x: 8, y: 10},- 'resizeupdown.svg': {x: 8, y: 7},- 'resizewest.svg': {x: 10, y: 10},- 'resizewesteast.svg': {x: 8, y: 10},- 'screenshotselection.svg': {x: 5, y: 5},- 'screenshotwindow.svg': {x: 5, y: 7},- 'textcursor.svg': {x: 13, y: 8},- 'textcursorvertical.svg': {x: 12, y: 24},- 'zoomin.svg': {x: 8, y: 8},- 'zoomout.svg': {x: 8, y: 8},+ 'resize northsouth.svg': {x: 16, y: 16},+ 'beachball.svg': {x: 16, y: 16},+ 'busy.svg': {x: 8, y: 3},+ 'cell.svg': {x: 16, y: 16},+ 'contextualmenu.svg': {x: 9, y: 10},+ 'copy.svg': {x: 8, y: 3},+ 'cross.svg': {x: 16, y: 16},+ 'default.svg': {x: 10, y: 9},+ 'handgrabbing.svg': {x: 15, y: 14},+ 'handopen.svg': {x: 15, y: 14},+ 'handpointing.svg': {x: 14, y: 8},+ 'help.svg': {x: 16, y: 17},+ 'makealias.svg': {x: 18, y: 10},+ 'move.svg': {x: 16, y: 16},+ 'notallowed.svg': {x: 8, y: 3},+ 'poof.svg': {x: 8, y: 3},+ 'resizedown.svg': {x: 16, y: 15},+ 'resizeeast.svg': {x: 15, y: 16},+ 'resizeleft.svg': {x: 19, y: 16},+ 'resizeleftright.svg': {x: 16, y: 16},+ 'resizenorth.svg': {x: 16, y: 18},+ 'resizenortheast.svg': {x: 15, y: 18},+ 'resizenortheastsouthwest.svg': {x: 16, y: 16},+ 'resizenorthsouth.svg': {x: 16, y: 16},+ 'resizenorthwest.svg': {x: 18, y: 18},+ 'resizenorthwestsoutheast.svg': {x: 16, y: 16},+ 'resizeright.svg': {x: 14, y: 16},+ 'resizesouth.svg': {x: 16, y: 15},+ 'resizesoutheast.svg': {x: 15, y: 14},+ 'resizesouthwest.svg': {x: 18, y: 14},+ 'resizeup.svg': {x: 16, y: 18},+ 'resizeupdown.svg': {x: 16, y: 16},+ 'resizewest.svg': {x: 18, y: 16},+ 'resizewesteast.svg': {x: 16, y: 17},+ 'screenshotselection.svg': {x: 16.5, y: 16.5},+ 'screenshotwindow.svg': {x: 16, y: 16},+ 'textcursor.svg': {x: 16.5, y: 16},+ 'textcursorvertical.svg': {x: 16.5, y: 15.5},+ 'zoomin.svg': {x: 14, y: 14},+ 'zoomout.svg': {x: 14, y: 14},};const resolveAsset = (src: string) => {