mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
More export events (#2441)
This commit is contained in:
parent
abde1daba4
commit
0ef60dce2d
4 changed files with 47 additions and 32 deletions
|
@ -2029,6 +2029,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
resetCursor();
|
||||
|
||||
if (!event[KEYS.CTRL_OR_CMD]) {
|
||||
trackEvent(EVENT_SHAPE, "text", "double-click");
|
||||
this.startTextEditing({
|
||||
sceneX,
|
||||
sceneY,
|
||||
|
|
|
@ -18,6 +18,7 @@ import useIsMobile from "../is-mobile";
|
|||
import { Dialog } from "./Dialog";
|
||||
import { canvasToBlob } from "../data/blob";
|
||||
import { CanvasError } from "../errors";
|
||||
import { EVENT_ACTION, trackEvent } from "../analytics";
|
||||
|
||||
const scales = [1, 2, 3];
|
||||
const defaultScale = scales.includes(devicePixelRatio) ? devicePixelRatio : 1;
|
||||
|
@ -250,7 +251,10 @@ export const ExportDialog = ({
|
|||
return (
|
||||
<>
|
||||
<ToolButton
|
||||
onClick={() => setModalIsShown(true)}
|
||||
onClick={() => {
|
||||
trackEvent(EVENT_ACTION, "export", "dialog");
|
||||
setModalIsShown(true);
|
||||
}}
|
||||
icon={exportFile}
|
||||
type="button"
|
||||
aria-label={t("buttons.export")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue