Move lasso folder, animated-trail.ts & animation-frame-handler.ts in src

This commit is contained in:
Deepen Timalsina 2025-04-15 17:11:07 +05:45
parent 7836fc9af2
commit 811023fd59
7 changed files with 10 additions and 10 deletions

View file

@ -380,7 +380,7 @@ import { ActionManager } from "../actions/manager";
import { actions } from "../actions/register";
import { getShortcutFromShortcutName } from "../actions/shortcuts";
import { trackEvent } from "../analytics";
import { AnimationFrameHandler } from "../animation-frame-handler";
import { AnimationFrameHandler } from "../src/animation-frame-handler";
import {
getDefaultAppState,
isEraserActive,
@ -454,7 +454,7 @@ import {
import { Emitter } from "../emitter";
import { ElementCanvasButtons } from "../components/ElementCanvasButtons";
import { Store, CaptureUpdateAction } from "../store";
import { AnimatedTrail } from "../animated-trail";
import { AnimatedTrail } from "../src/animated-trail";
import { LaserTrails } from "../laser-trails";
import { withBatchedUpdates, withBatchedUpdatesThrottled } from "../reactUtils";
import { textWysiwyg } from "../src/wysiwyg/textWysiwyg";
@ -462,7 +462,7 @@ import { isOverScrollBars } from "../src/scene/scrollbars";
import { isMaybeMermaidDefinition } from "../mermaid";
import { LassoTrail } from "../lasso";
import { LassoTrail } from "../src/lasso";
import { activeConfirmDialogAtom } from "./ActiveConfirmDialog";
import BraveMeasureTextError from "./BraveMeasureTextError";

View file

@ -2,7 +2,7 @@ import { useEffect, useRef } from "react";
import "./SVGLayer.scss";
import type { Trail } from "../animated-trail";
import type { Trail } from "../src/animated-trail";
type SVGLayerProps = {
trails: Trail[];

View file

@ -2,11 +2,11 @@ import { DEFAULT_LASER_COLOR, easeOut } from "@excalidraw/common";
import type { LaserPointerOptions } from "@excalidraw/laser-pointer";
import { AnimatedTrail } from "./animated-trail";
import { AnimatedTrail } from "./src/animated-trail";
import { getClientColor } from "./clients";
import type { Trail } from "./animated-trail";
import type { AnimationFrameHandler } from "./animation-frame-handler";
import type { Trail } from "./src/animated-trail";
import type { AnimationFrameHandler } from "./src/animation-frame-handler";
import type App from "./components/App";
import type { SocketId } from "./types";

View file

@ -9,8 +9,8 @@ import {
import type { LaserPointerOptions } from "@excalidraw/laser-pointer";
import type { AnimationFrameHandler } from "./animation-frame-handler";
import type App from "./components/App";
import type { AppState } from "./types";
import type App from "../components/App";
import type { AppState } from "../types";
export interface Trail {
start(container: SVGSVGElement): void;

View file

@ -31,7 +31,7 @@ import { AnimatedTrail } from "../animated-trail";
import { getLassoSelectedElementIds } from "./utils";
import type App from "../components/App";
import type App from "../../components/App";
export class LassoTrail extends AnimatedTrail {
private intersectedElements: Set<ExcalidrawElement["id"]> = new Set();