mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
chore: Remove tracking (#2722)
* chore: Remove tracking * process * rename * remove * prod * Update public/index.html Co-authored-by: David Luzar <luzar.david@gmail.com> * Update public/index.html * eol * more * stats Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
parent
4acdc47ef0
commit
3aa01ad272
33 changed files with 182 additions and 435 deletions
|
@ -1,8 +1,7 @@
|
|||
import { AppState } from "./types";
|
||||
import { ExcalidrawElement } from "./element/types";
|
||||
import { getElementsInGroup } from "./groups";
|
||||
import { findLastIndex, findIndex } from "./utils";
|
||||
import { trackEvent, EVENT_LAYER } from "./analytics";
|
||||
import { AppState } from "./types";
|
||||
import { findIndex, findLastIndex } from "./utils";
|
||||
|
||||
/**
|
||||
* Returns indices of elements to move based on selected elements.
|
||||
|
@ -176,7 +175,6 @@ const shiftElements = (
|
|||
];
|
||||
});
|
||||
|
||||
trackEvent(EVENT_LAYER, "move", direction === "left" ? "down" : "up");
|
||||
return elements;
|
||||
};
|
||||
|
||||
|
@ -234,7 +232,6 @@ const shiftElementsToEnd = (
|
|||
const leadingElements = elements.slice(0, leadingIndex);
|
||||
const trailingElements = elements.slice(trailingIndex + 1);
|
||||
|
||||
trackEvent(EVENT_LAYER, "move", direction === "left" ? "back" : "front");
|
||||
return direction === "left"
|
||||
? [
|
||||
...leadingElements,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue