mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Move lasso folder, animated-trail.ts & animation-frame-handler.ts in src
This commit is contained in:
parent
7836fc9af2
commit
811023fd59
7 changed files with 10 additions and 10 deletions
|
@ -380,7 +380,7 @@ import { ActionManager } from "../actions/manager";
|
||||||
import { actions } from "../actions/register";
|
import { actions } from "../actions/register";
|
||||||
import { getShortcutFromShortcutName } from "../actions/shortcuts";
|
import { getShortcutFromShortcutName } from "../actions/shortcuts";
|
||||||
import { trackEvent } from "../analytics";
|
import { trackEvent } from "../analytics";
|
||||||
import { AnimationFrameHandler } from "../animation-frame-handler";
|
import { AnimationFrameHandler } from "../src/animation-frame-handler";
|
||||||
import {
|
import {
|
||||||
getDefaultAppState,
|
getDefaultAppState,
|
||||||
isEraserActive,
|
isEraserActive,
|
||||||
|
@ -454,7 +454,7 @@ import {
|
||||||
import { Emitter } from "../emitter";
|
import { Emitter } from "../emitter";
|
||||||
import { ElementCanvasButtons } from "../components/ElementCanvasButtons";
|
import { ElementCanvasButtons } from "../components/ElementCanvasButtons";
|
||||||
import { Store, CaptureUpdateAction } from "../store";
|
import { Store, CaptureUpdateAction } from "../store";
|
||||||
import { AnimatedTrail } from "../animated-trail";
|
import { AnimatedTrail } from "../src/animated-trail";
|
||||||
import { LaserTrails } from "../laser-trails";
|
import { LaserTrails } from "../laser-trails";
|
||||||
import { withBatchedUpdates, withBatchedUpdatesThrottled } from "../reactUtils";
|
import { withBatchedUpdates, withBatchedUpdatesThrottled } from "../reactUtils";
|
||||||
import { textWysiwyg } from "../src/wysiwyg/textWysiwyg";
|
import { textWysiwyg } from "../src/wysiwyg/textWysiwyg";
|
||||||
|
@ -462,7 +462,7 @@ import { isOverScrollBars } from "../src/scene/scrollbars";
|
||||||
|
|
||||||
import { isMaybeMermaidDefinition } from "../mermaid";
|
import { isMaybeMermaidDefinition } from "../mermaid";
|
||||||
|
|
||||||
import { LassoTrail } from "../lasso";
|
import { LassoTrail } from "../src/lasso";
|
||||||
|
|
||||||
import { activeConfirmDialogAtom } from "./ActiveConfirmDialog";
|
import { activeConfirmDialogAtom } from "./ActiveConfirmDialog";
|
||||||
import BraveMeasureTextError from "./BraveMeasureTextError";
|
import BraveMeasureTextError from "./BraveMeasureTextError";
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { useEffect, useRef } from "react";
|
||||||
|
|
||||||
import "./SVGLayer.scss";
|
import "./SVGLayer.scss";
|
||||||
|
|
||||||
import type { Trail } from "../animated-trail";
|
import type { Trail } from "../src/animated-trail";
|
||||||
|
|
||||||
type SVGLayerProps = {
|
type SVGLayerProps = {
|
||||||
trails: Trail[];
|
trails: Trail[];
|
||||||
|
|
|
@ -2,11 +2,11 @@ import { DEFAULT_LASER_COLOR, easeOut } from "@excalidraw/common";
|
||||||
|
|
||||||
import type { LaserPointerOptions } from "@excalidraw/laser-pointer";
|
import type { LaserPointerOptions } from "@excalidraw/laser-pointer";
|
||||||
|
|
||||||
import { AnimatedTrail } from "./animated-trail";
|
import { AnimatedTrail } from "./src/animated-trail";
|
||||||
import { getClientColor } from "./clients";
|
import { getClientColor } from "./clients";
|
||||||
|
|
||||||
import type { Trail } from "./animated-trail";
|
import type { Trail } from "./src/animated-trail";
|
||||||
import type { AnimationFrameHandler } from "./animation-frame-handler";
|
import type { AnimationFrameHandler } from "./src/animation-frame-handler";
|
||||||
import type App from "./components/App";
|
import type App from "./components/App";
|
||||||
import type { SocketId } from "./types";
|
import type { SocketId } from "./types";
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@ import {
|
||||||
import type { LaserPointerOptions } from "@excalidraw/laser-pointer";
|
import type { LaserPointerOptions } from "@excalidraw/laser-pointer";
|
||||||
|
|
||||||
import type { AnimationFrameHandler } from "./animation-frame-handler";
|
import type { AnimationFrameHandler } from "./animation-frame-handler";
|
||||||
import type App from "./components/App";
|
import type App from "../components/App";
|
||||||
import type { AppState } from "./types";
|
import type { AppState } from "../types";
|
||||||
|
|
||||||
export interface Trail {
|
export interface Trail {
|
||||||
start(container: SVGSVGElement): void;
|
start(container: SVGSVGElement): void;
|
|
@ -31,7 +31,7 @@ import { AnimatedTrail } from "../animated-trail";
|
||||||
|
|
||||||
import { getLassoSelectedElementIds } from "./utils";
|
import { getLassoSelectedElementIds } from "./utils";
|
||||||
|
|
||||||
import type App from "../components/App";
|
import type App from "../../components/App";
|
||||||
|
|
||||||
export class LassoTrail extends AnimatedTrail {
|
export class LassoTrail extends AnimatedTrail {
|
||||||
private intersectedElements: Set<ExcalidrawElement["id"]> = new Set();
|
private intersectedElements: Set<ExcalidrawElement["id"]> = new Set();
|
Loading…
Add table
Add a link
Reference in a new issue